bundle install fails under jruby-1.6.5 with /usr/bin/ld: cannot find -lv8
Created by: kirantpatil
ubuntu@gtt-ubuntu:~/gitlabhq$ ruby -v Picked up _JAVA_OPTIONS: -Xmx1024m jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (OpenJDK 64-Bit Server VM 1.6.0_20) [linux-amd64-java]
ubuntu@gtt-ubuntu:~/gitlabhq$ bundle install Picked up _JAVA_OPTIONS: -Xmx1024m Fetching source index for http://rubygems.org/ Using rake (0.9.2.2) ... ... Installing therubyracer (0.9.9) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/ubuntu/.rvm/rubies/jruby-1.6.5/bin/jruby extconf.rb
Picked up _JAVA_OPTIONS: -Xmx1024m WARNING: JRuby does not support native extensions or the `mkmf' library very well. Check http://kenai.com/projects/jruby/pages/Home for alternatives. creating Makefile
make g++ -I. -I/home/ubuntu/.rvm/gems/jruby-1.6.5@gitlabhq/gems/libv8-3.3.10.4/lib/libv8/v8/include -I/home/ubuntu/.rvm/rubies/jruby-1.6.5/lib/native/include -I/home/ubuntu/.rvm/rubies/jruby-1.6.5/lib/native/include/ruby -I. -Wall -g -rdynamic -fPIC -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -m64 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -c v8_value.cpp .... .... g++ -shared -o v8.so v8_value.o v8_string.o v8_object.o v8_handle.o v8_function.o v8_script.o v8_weakref.o v8_external.o v8_locker.o v8_context.o v8_try_catch.o v8_exception.o v8.o rr.o v8_debug.o v8_date.o v8_message.o v8_v8.o v8_array.o v8_template.o v8_callbacks.o -L"/home/ubuntu/.rvm/gems/jruby-1.6.5@gitlabhq/gems/libv8-3.3.10.4/lib/libv8/build/v8" -L"." -L"/home/ubuntu/.rvm/rubies/jruby-1.6.5/lib" -m64 -lv8 -lpthread /usr/bin/ld: cannot find -lv8 collect2: ld returned 1 exit status make: *** [v8.so] Error 1
Gem files will remain installed in /home/ubuntu/.rvm/gems/jruby-1.6.5@gitlabhq/gems/therubyracer-0.9.9 for inspection.
Results logged to /home/ubuntu/.rvm/gems/jruby-1.6.5@gitlabhq/gems/therubyracer-0.9.9/ext/v8/gem_make.out
An error occured while installing therubyracer (0.9.9), and Bundler cannot continue.
Make sure that gem install therubyracer -v '0.9.9'
succeeds before bundling.