2013-11-14 24 views
1

我從源碼構建JRuby並獲得了jirb的工作。當我去安裝一塊寶石,我等了約30秒鐘,然後將處理結束這樣的:可能的jruby依賴問題

$ jruby -S gem install jekyll 
Killed 

我嘗試了一些其他的寶石具有相同的結果。然後我從系統中刪除JRuby構建和文件,並使用RVM再次安裝它。

\curl -L https://get.rvm.io | bash -s stable --ruby=jruby 

我仍然遇到同樣的問題。我很難在網上尋找幫助。在JRuby網站上我找不到任何東西,RVM安裝程序應該「正常工作」。我是否缺少任何依賴關係?提前致謝。

回答

2

當我嘗試它,我得到了以下

Fetching: fast-stemmer-1.0.2.gem (100%) 
Building native extensions. This could take a while... 
ERROR: Error installing jekyll: 
ERROR: Failed to build gem native extension. 

    /Users/g/.rvm/rubies/jruby-1.7.4/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 /Users/g/.rvm/rubies/jruby-1.7.4/lib/ruby/shared/mkmf.rb:8 
require at org/jruby/RubyKernel.java:1054 
(root) at /Users/g/.rvm/rubies/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:1 
(root) at extconf.rb:1 

看起來像快詞幹具有c code這JRuby中不支持