Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

libv8 (3.11.8.17) bundle install error on Mac

I upgraded ruby to 1.9.3, and now I can't get my server to start. When I run bundle install, it says

An error occurred while installing libv8 (3.11.8.17), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.11.8.17'` succeeds before bundling.

When I try to install that gem, it says

ERROR:  Error installing libv8:
        ERROR: Failed to build gem native extension.

        /Users/Erica/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
creating Makefile
Compiling v8 for x64
Using python 2.7.1
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher

I'm an HTML/CSS coder, not really a Ruby developer, so any thoughts are really appreciated.

like image 341
Erica Avatar asked Sep 05 '13 20:09

Erica


3 Answers

I resolved this issue by using the following command:

gem install libv8 -v 3.11.8.17 -- --with-system-v8

It works with RVM on Mavericks.

https://stackoverflow.com/a/19667419/763744

like image 126
Zernel Avatar answered Oct 19 '22 04:10

Zernel


Try reinstalling v8 in homebrew:

gem uninstall libv8
brew install v8
gem install libv8
like image 9
RonanOD Avatar answered Oct 19 '22 05:10

RonanOD


Do:

gem install rmagick -v '2.13.2'
gem install libv8 -v 3.11.8.17 -- --with-system-v8
like image 3
abcd_win Avatar answered Oct 19 '22 05:10

abcd_win