How to Install Therubyracer Gem on 10.10 Yosemite

How to install therubyracer gem on 10.10 Yosemite?

git clone https://github.com/cowboyd/libv8.git
cd libv8
bundle install
bundle exec rake clean build binary
gem install pkg/libv8-3.16.14.3-x86_64-darwin-12.gem #note that libv8 version may change, so tab through files in pkg/, also remember to use the one with version specified

then just bundle your project gems

this is the only way it worked for me on 10.10 (ruby 2.1.2)

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'

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 / TheRubyRacer gem cannot be installed on MacOS Catalina 10.15.2

I've found the solution for this error.
If you have a problem with bundle install check this:

gem list libv8 --remote --all
gem install libv8 -v 3.16.14.19 -- --with-system-v8
gem install therubyracer -- --with-v8-dir=/Users/YOUR_NAME/homebrew/opt/v8@3.15

It works for me, after few hours of fighting with every solution I can find.
Hope it'll help someone.

`gem install therubyracer` fails on Mac OS X Lion

This worked for me:

$ gem uninstall libv8
$ gem install therubyracer

(A big thanks to http://www.ruby-forum.com/topic/4306127)

MAC OSX 10.15.7 - bundle install failed for rubyracer which depends on libv8 for ruby 2.0.0

Following did not work as v8 was installed via Homebrew and no symlink for following path was created,

gem install therubyracer -v '0.12.3' -- --with-v8-dir=/usr/local/opt/v8@3.15

So made it available from Cellar & provided some environment variables needed,

export CXX=clang++
export GYPFLAGS=-Dmac_deployment_target=10.15
gem install therubyracer -v '0.12.3' -- --with-v8-dir=/usr/local/Cellar/v8/8.9.255.25

This worked like charm.



Related Topics



Leave a reply



Submit