y1djxq
Last Updated: February 25, 2016
·
6.738K
· oesmith
F900d5b41b198b71f14b19aab26ad289

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

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.

3 Responses
Add your response

1411
15c80c9bf8be5ba6e5eeac9cb0304464

Nice one, Olly! Worked a charm.

over 1 year ago ·
2240
E1fc8518587aa9034796a9fd2de1f441

good catch, it makes total sense when read "aloud".

over 1 year ago ·
9848
0a6e71c660f444871556178ae4a655cb

Now, it is stuck on "Building native extensions. This could take awhile...."

over 1 year ago ·