Hello,
I am trying to convert app from Rails 2.1 to Jruby. One of the required
gems is libxml-ruby but i get the following error when doing a gem
install
from jruby:
Building native extensions. This could take a while…
/opt/jruby-1.1.2/lib/ruby/1.8/mkmf.rb:7:in
/opt/jruby-1.1.2/lib/ruby/1.8/mkmf.rb': JRuby does not support native extensions. Check wiki.jruby.org for alternatives. (NotImplementedError) from /opt/jruby-1.1.2/lib/ruby/1.8/mkmf.rb:57:in
require’
from extconf.rb:57
ERROR: Error installing libxml-ruby:
ERROR: Failed to build gem native extension.
/opt/jruby-1.1.2/bin/jruby extconf.rb install libxml-ruby
I tried then building manually with ruby setup.rb in the directory but
received:
ruby setup.rb install
setup.rb:864:in dllext': uninitialized constant Setup::Installer::RBCONFIG (NameError) from setup.rb:856:in
rubyextentions’
from setup.rb:821:in install_dir_ext' from setup.rb:1021:in
send’
from setup.rb:1021:in traverse' from setup.rb:1038:in
dive_into’
from setup.rb:1019:in traverse' from setup.rb:1023:in
traverse’
from setup.rb:1022:in each' ... 6 levels... from setup.rb:808:in
exec_install’
from setup.rb:1383:in __send__' from setup.rb:1383:in
run_cli’
from setup.rb:1465
Any ideas here ?
Adam