我正在尝试使用JRuby作为底层Ruby在Netbeans中运行rails应用程序。当我尝试运行服务器时,我得到了一个类似这样的错误,
Missing these required gems:
libxml-ruby 所以我尝试安装libxml-ruby gem,但我无法安装它,因为它是本机版本,而jruby不支持它。那很好。
(in /home/braga/prj/eschool/trunk)
jruby -S gem install libxml-ruby
ERROR: Error installing libxml-ruby:
ERROR: Failed to build gem native extension.
Building native extensions. This could take a while...
/home/braga/netbeans-6.9/ruby/jruby-1.5.0/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
extconf.rb:23: uninitialized constant CONFIG (NameError)因此,我不得不安装一个替代方案,并安装了libxml-jruby gem。然后我又启动了服务器。但我仍然得到以下错误,
Missing these required gems:
libxml-ruby 发布于 2010-06-22 16:02:49
如果你已经在代码或者你正在使用的插件中的某个地方声明了require "libxml-ruby",请确保你有require "libxml-jruby"。
希望这能对你有所帮助
https://stackoverflow.com/questions/3091235
复制相似问题