有沒有人有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