gitlabhq/gitlabhq — Issue #108: Installation problem under jruby-1.6.5
Author: kirantpatil
Created: 2011-11-18 06:15:27+00:00
State: open

ubuntu@gtt-ubuntu:~$ ruby -v
jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (OpenJDK 64-Bit Server VM 1.6.0_20) [linux-amd64-java]

ubuntu@gtt-ubuntu:~$ rails -v
Rails 3.1.1

I am getting below error while installing gitlabhq in Ubuntu with jruby. I am also getting same error for ruby-debug19, linecache19. Since they are for debugging I removed them from Gemfile.

Installing libv8 (3.3.10.4) 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.
Checking for Python...NameError: uninitialized constant Gem
const_missing at org/jruby/RubyModule.java:2590
(root) at extconf.rb:13
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/home/ubuntu/.rvm/rubies/jruby-1.6.5/bin/jruby

Gem files will remain installed in /home/ubuntu/.rvm/gems/jruby-1.6.5@gitlabhq/gems/libv8-3.3.10.4 for inspection.
Results logged to /home/ubuntu/.rvm/gems/jruby-1.6.5@gitlabhq/gems/libv8-3.3.10.4/ext/libv8/gem_make.out
An error occured while installing libv8 (3.3.10.4), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.3.10.4'` succeeds before bundling.