You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a novice to ruby and jruby. When I tried to install watir-classic gem with jruby 9.0.0.0 (2.2.2), I'm seeing the following error. I'm trying to enable the native c extensions. Through I found some past discussions, it is not clear to me if it is even possible to enable c extension with Jruby 9.0.0.0 Ruby 2.2.2 (32-bit). The following is the error
jruby -S gem install watir-classic-4.2.0.gem
Building native extensions. This could take a while...
C:/jruby9000/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:39: warning: Tempf
ile#unlink or delete called on open file; ignoring
ERROR: Error installing watir-classic-4.2.0.gem:
ERROR: Failed to build gem native extension.
jruby: warning: unknown property jruby.cext.enabled
jruby: warning: unknown property jruby.cext.enabled
NotImplementedError: C extensions are not supported
at C:/jruby9000/lib/ruby/stdlib/mkmf.rb:1
require at org/jruby/RubyKernel.java:940
(root) at C:/jruby9000/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
at extconf.rb:7
extconf failed, exit code 1
Gem files will remain installed in C:/jruby9000/lib/ruby/gems/shared/gems/win32-
api-1.4.8 for inspection.
Results logged to C:/jruby9000/lib/ruby/gems/shared/extensions/universal-java-1.
8/2.2.0/win32-api-1.4.8/gem_make.out
Thank you inadvance for any information you can give me.
The text was updated successfully, but these errors were encountered:
Kwando, thank you for the reply. However, there are so many useful gems out there that require c language support one way or the other. there is also a very good article here...though I could NOT replicate the results (and this article is 5 years old...) I am not savy enough to know if what is discussed here is applicable to Jruby 9.0.0.0 with (Ruby 2.2.2) 32-bit. http://jonforums.github.io/ruby/2010/11/30/devkit-jruby-c-extensions.html
I ran into issues, as I was trying to replicate his steps. Though everything he/she discussed made sense.
Any other comments from Ruby/Jruby experts are highly appreciated.
there sure are plenty C-style gems but usually the really good and popular ones provide a -java (JRuby) specific gem version these days (e.g. nokogiri). the other alternative to relying on MRI's C internals is to use FFI to link to C libraries. this is the path JRuby has taken and C-extensions simply won't work in 9K, sorry.
I'm a novice to ruby and jruby. When I tried to install watir-classic gem with jruby 9.0.0.0 (2.2.2), I'm seeing the following error. I'm trying to enable the native c extensions. Through I found some past discussions, it is not clear to me if it is even possible to enable c extension with Jruby 9.0.0.0 Ruby 2.2.2 (32-bit). The following is the error
jruby -S gem install watir-classic-4.2.0.gem
Building native extensions. This could take a while...
C:/jruby9000/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:39: warning: Tempf
ile#unlink or delete called on open file; ignoring
ERROR: Error installing watir-classic-4.2.0.gem:
ERROR: Failed to build gem native extension.
jruby: warning: unknown property jruby.cext.enabled
jruby: warning: unknown property jruby.cext.enabled
NotImplementedError: C extensions are not supported
at C:/jruby9000/lib/ruby/stdlib/mkmf.rb:1
require at org/jruby/RubyKernel.java:940
(root) at C:/jruby9000/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
at extconf.rb:7
extconf failed, exit code 1
Gem files will remain installed in C:/jruby9000/lib/ruby/gems/shared/gems/win32-
api-1.4.8 for inspection.
Results logged to C:/jruby9000/lib/ruby/gems/shared/extensions/universal-java-1.
8/2.2.0/win32-api-1.4.8/gem_make.out
Thank you inadvance for any information you can give me.
The text was updated successfully, but these errors were encountered: