bundle install issue with libv8 and rails
I suspect this was because I had a 32/64 bit mismatch.
I solved this with the following:
$ irb
ruby-1.9.3-p0 :001 > `gem list`.each_line {|line| `sudo env ARCHFLAGS="-arch x86_64" gem install #{line.split.first}`
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
Error while Bundle install
First add the gem gem 'libv8', '~> 3.16', '>= 3.16.14.7' into the gem file or run gem install libv8 -v 3.16.14.7.
Once you have installed or added the gen, run bundle install.
the gem file will be added successfully.
Related Topics
Setting Path for Whenever in Cron So It Can Find Ruby
Generating an Instagram- or Youtube-Like Unguessable String Id in Ruby/Activerecord
How to Format This International Phone Number in Rails
How to Access Attributes Using Nokogiri
How to Customize Rails Activerecord Validation Error Message to Show Attribute Value
Order Products by Association Count
Complicated Graphviz Tree Structure
How to Convert a Ruby Object to JSON
What Is '-Mix' in a Ruby Regular Expression
Ruby (And Rails) Nested Module Syntax
What Is the Best Practice When It Comes to Testing "Infinite Loops"
How to Display the Current Date in "Mm/Dd/Yyyy" Format in Rails