Error installing libv8: ERROR: Failed to build gem native extension
try this one:
gem install libv8 -v '3.16.14.3' -- --with-system-v8
Note : Because libv8 is the interface for the V8 engine used by therubyracer,
you may need to use libv8, even if you have V8 installed already. If
you wish to use your own V8 installation, rather than have it built
for you, use the--with-system-v8
option.
For more you can go through the documentation of libv8 on github
OpenBSD unable to install therubyracer gem ERROR: Failed to build gem native extension
I was unable to install therubyracer
gem in OpenBSD
. As a workaround, I replaced it with the nodejs
javascript runtime:
gem 'node'
Make sure to remove the gem 'therubyracer'
line.
therubyracer install error
You can use the Libv8 from the brew instead of the one from gem. You can do that by following commands:
$ gem uninstall libv8
$ brew install v8
$ gem install therubyracer
Related Topics
Ruby on Rails. Bundler. Cucumber. Rake Aborted! Command Failed with Status (1)
What's the Nature of "Property" in a Ruby Class
Remote Form_Tag in Rails3 Without a Named Route
Interface Builder Not Seeing Outlets with MACruby
How to Copy an Object with Presigned Url
Ruby - How to Thread Across Cores/Processors
Cucumber Step Definition for "Given That I'm Logged In"
Prawn PDF: I Need to Generate Nested Tables
Generic Way to Replace an Object in It's Own Method
Sinatra Helper to Fake a Request
Rails Format Validation -- Alphanumeric, But Not Purely Numeric
When to Use Association Extensions VS Named Scopes
Problem Installing Ruby 1.9.2 on MAC Os Lion
Generating a Race Condition with Mri