有没有人有jRuby的同样的错误?当我尝试用C扩展宝石,我有一个错误:jRuby,与C扩展的宝石
gem install serialport Building native extensions. This could take a while... ERROR: Error installing serialport: ERROR: Failed to build gem native extension.
/home/username/.rvm/rubies/jruby-head/bin/jruby extconf.rb NotImplementedError: C > extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS or modify .jrubyrc to enable.
(root) at /home/username/.rvm/rubies/jruby-head/lib/ruby/shared/mkmf.rb:8
require at org/jruby/RubyKernel.java:1021 (root) at /home/username/.rvm/rubies/jruby-head/lib/ruby/shared/rubygems/custom_require.rb:1 (root) at extconf.rb:1
在错误的解释声明没有给出任何成功的任何参数...
信息关于安装的JRuby版本: 的JRuby 1.7.0.preview2.dev(1.9.3p203)上的Java的HotSpot(TM)服务器VM 2012-08-05 22cd6f9 1.7.0_05-B05 [Linux的I386]
平台: Linux的
宝石: serialport
它说:“通过-Xcext.enabled = true到JRuby或设置JRUBY_OPTS或修改.jrubyrc启用”。是你做的吗? – 2012-08-05 15:26:50
是的,我做到了... – Halibut 2012-08-05 15:28:33
你尝试过所有这些吗? – 2012-08-05 15:32:33