ruby on rails - Failed to build gem native extension with JRuby -


i change ruby version ruby 1.9.3-p125 jruby 1.7.0-preview1 ruby-build. when execute jruby -s bundle install on project, there errors below,

... using bson (1.6.2)  installing bson_ext (1.6.2) native extensions gem::installer::extensionbuilderror: error: failed build gem native extension.          /users/joshchang/.rbenv/versions/jruby-1.7.0-preview1/bin/jruby extconf.rb  notimplementederror: c extension support not enabled. pass -xcext.enabled=true jruby or set jruby_opts or modify .jrubyrc enable.     (root) @ /users/joshchang/.rbenv/versions/jruby-1.7.0-preview1/lib/ruby/shared/mkmf.rb:8   require @ org/jruby/rubykernel.java:991    (root) @ /users/joshchang/.rbenv/versions/jruby-1.7.0-preview1/lib/ruby/shared/rubygems/custom_require.rb:1    (root) @ extconf.rb:1 ... 

is there suggestions? thanks.

jruby_opts="-xcext.enabled=true" gem install <your gem> should work!


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -