可能的 jruby 依赖项问题



我从源代码构建了JRuby,并让jirb工作。当我去安装 gem 时,我等待了 ~30 秒,然后该过程结束如下:

$ jruby -S gem install jekyll
Killed

我尝试了其他几个宝石,结果相同。然后,我从系统中删除了JRuby构建和文件,并使用RVM再次安装它。

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

我仍然遇到同样的问题。我很难在网上找到帮助。我在JRuby网站上找不到任何东西,RVM安装程序应该"正常工作"。我是否缺少任何依赖项?提前谢谢。

当我尝试时,我得到了以下内容

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

看起来快速词干分析器有 Jruby 不支持的 C 代码

最新更新