Where developers come to connect, share, build and be inspired.

42

therubyracer 0.10.1, libv8 3.3.10.4, Ruby Enterprise Edition 1.8.7 and OS X 10.8 Mountain Lion - how to make it work

5268 views

If you're reading this, you've probably had failures trying to install therubyracer with ruby 1.8 on OS X.

The fix is... (drumroll)...

RUBYOPT=-rrubygems gem install therubyracer

For those who are interested in the reasons why this works: the extconf.rb file for libv8 3.3.10.4, upon which therubyracer seems to depend, uses Gems without importing rubygems (which is fine in ruby 1.9). Adding -rrubygems to RUBYOPT makes sure rubygems are pulled in first.

Comments

Add a comment