Gem Install Therubyracer -V 0.11.4 Fails on Os X 10.10

gem install therubyracer -v 0.11.4 fails on OS X 10.10

I finally got therubyracer 0.11.4 to install and working using Xcode 6.1.1, 6.2 beta or 6.3 beta (I've tested all 3) and also Xcode 4.6.3 (available at: https://developer.apple.com/downloads/index.action) then running:

# rename your current version of Xcode to make it distinguishable
sudo mv /Applications/Xcode.app /Applications/$(xcodebuild -version | head -1 | sed -e 's/ //').app

# Download and install Xcode 4.6.3 and run:
sudo mv /Applications/Xcode.app /Applications/Xcode4.6.3.app

# Switch to your 4.6.3 version of Xcode
sudo xcode-select --switch /Applications/Xcode4.6.3.app

# Install the version of libv8 that's tied to your version of TRR:
gem install libv8 -v '3.11.8.17'

# Switch back to you original version of Xcode
sudo xcode-select --switch /Applications/Xcode6.x.app

# Install TRR
gem install therubyracer -v '0.11.4'

gem install therubyracer -v '0.10.2' on osx mavericks not installing

If you decide to use a newer therubyracer gem version, you will no longer have this problem

Otherwise:

brew tap homebrew/dupes # Thanks Tom
brew install apple-gcc42

export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2
export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2

brew uninstall v8

gem uninstall libv8

gem install therubyracer -v '0.10.2' # specify version

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

Cannot install gem 'therubyracer' in OS X Mavericks

Sorry, I don't know what fixed my problem. I was trying everything and it got fixed.

I installed gcc47 using macports, not homebrew.(it took nearly 2 days to install in my slow 512kbps connection)

Then I changed the version of therubyracer to '0.12.0'

I don't know which got my problem fixed.

Unable to install therubyracer on clean install of Yosemite and clean version of ruby

I was able to solve this by re-installing Command Line Tools for XCode 6.2 (instead of those for XCode 6.3).

There's more discussion in Stack Overflow 29529455.

bundle install / update: libv8 (therubyracer) installation fails (with native extensions)

Try that one for a little while:

gem 'therubyracer'
gem 'libv8', '3.16.14.3'

Should help.

Also it's better with a new bundler: gem install bundler --pre

therubyracer - Gem::Ext::BuildError: ERROR: Failed to build gem native extension

This steps worked for me.

OS: Maverick
Ruby: 2.1.1

gem uninstall libv8
gem install therubyracer -v '0.11.3'
gem install libv8 -v '3.11.8.13' -- --with-system-v8

Fix therubyracer/libv8 (0.12.1) installation on Mavericks

OK, so this is now sorted.

For future people with the same problem, I was suffering from having ruby built against a previous installation of OS X.

Fixed by completely nuking rvm and starting from scratch, though I imagine you could just uninstall/reinstall the offending ruby.

More details on how the problem was solved here:

https://github.com/cowboyd/libv8/issues/120



Related Topics



Leave a reply



Submit