cowboyd/therubyracer — Issue #124: therubyracer confilct with libv8 on Ubuntu
Author: mantisoltd
Created: 2011-11-11 08:28:43+00:00
State: open

These two are similar to the problem I'm having but I thought I'd re-raise this as the issue has been closed.

https://github.com/cowboyd/therubyracer/issues/91
https://github.com/cowboyd/therubyracer/issues/93

I'm using jruby and I'm trying to use therubyracer. When I install the gem I get an error "/usr/bin/ld: cannot find -lv8" and the 'fix' is to install libv8. I install libv8 using apt (it's version 3.1.8.22) and therubyracer then installs. Now when I run rake db:migrate I get an error

jruby-1.6.5/gems/therubyracer-0.9.9/ext/v8/v8.so: undefined symbol: _ZN2v86LockerC1EPNS_7IsolateE

This led me to the two links above. So I uninstall therubyracer and libv8 and then gem install libv8 (that installs libv8-3.3.10.2, a much later version). When I do a gem install therubyracer it doesn't compile.

So I seem to be stuck in a circular dependency here, I need to system version of libv8 to compile but this screws up therubyracer.

Any help is much appreciated