【发布时间】:2012-06-05 09:45:10
【问题描述】:
我使用 ruby-build 将 ruby 版本从 ruby 1.9.3-p125 更改为 JRuby 1.7.0-preview1。当我在我的项目上执行jruby -S bundle install 时,出现如下错误,
...
Using bson (1.6.2)
Installing bson_ext (1.6.2) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/joshchang/.rbenv/versions/jruby-1.7.0-preview1/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/joshchang/.rbenv/versions/jruby-1.7.0-preview1/lib/ruby/shared/mkmf.rb:8
require at org/jruby/RubyKernel.java:991
(root) at /Users/joshchang/.rbenv/versions/jruby-1.7.0-preview1/lib/ruby/shared/rubygems/custom_require.rb:1
(root) at extconf.rb:1
...
有什么建议吗?谢谢。
【问题讨论】:
标签: ruby-on-rails jruby bundler jrubyonrails