This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When attempting to update the ruby-debug-base gem from 0.10.0 to 0.10.1 fails with the following error. ERROR: Error installing ruby-debug-base: ERROR: Failed to build gem native extension. C:/Program Files/NetBeans 6.1 RC1/ruby2/jruby-1.1/bin/jruby.bat.exe extconf.rb update ruby-debug-base --verbose --no- rdoc --no-ri 'C:/Program' is not recognized as an internal or external command, operable program or batch file. Note that jruby.bat.exe does not exist, only the batch file exists at that location.
Created attachment 60092 [details] Screenshot
Firstly it's strange that it tries to compile native extension. Did you just press "Update All" or "Update" button on the ruby-debug-base, right? What version of RubyGems are you using? Detailed log could help: http://wiki.netbeans.org/FaqRubyNBLogging Thanks.
I appear to see the same issue when trying to do the update on 6.1 RC2 (note the error, then the failed execution). For my case I only see the ruby-debug-base which fails: JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL Updating installed gems... Attempting remote update of ruby-debug-base Installing gem ruby-debug-base-0.10.1 C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/AUTHORS C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/CHANGES C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/LICENSE C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/README C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/Rakefile C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/ext/breakpoint.c C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/ext/extconf.rb C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/ext/ruby_debug.c C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/ext/ruby_debug.h C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/lib/ruby-debug-base.rb C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/lib/ChangeLog C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/test/base/base.rb C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/test/base/binding.rb C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.1/test/base/catchpoint.rb Building native extensions. This could take a while... ERROR: Error installing ruby-debug-base: ERROR: Failed to build gem native extension. C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/bin/jruby.bat.exe extconf.rb update ruby-debug-base --verbose --no- rdoc --no-ri 'C:/Program' is not recognized as an internal or external command, operable program or batch file. Gem files will remain installed in C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug- base-0.10.1 for inspection. Results logged to C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-base- 0.10.1/ext/gem_make.out Gems updated: ruby-debug-base
JRuby can't handle native C extensions. We should make this somehow explicit in NetBeans to prevent confusions like this one.
*** Issue 133816 has been marked as a duplicate of this issue. ***
*** Issue 133766 has been marked as a duplicate of this issue. ***
*** Issue 135861 has been marked as a duplicate of this issue. ***
*** Issue 138147 has been marked as a duplicate of this issue. ***
A lot of dupes. Increasing priority, will try to resolve somehow for 6.5.
Ok, this is not defect in NetBeans. The gem tool behaves the same (try to install/list/update ruby-debug-base). This needs to be solved in general. I'll have to look more at RubyGems source code to understand details and either workaround in NetBeans or e.g. provide patch for RubyGems. Ideally native C gems would not be offered by gem tool when running JRuby platform. The same problem might appear under other combination.