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.

Bug 132689 - Updating ruby-debug-base under JRuby fails
Summary: Updating ruby-debug-base under JRuby fails
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Gems (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
: 133766 133816 135861 138147 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-12 20:41 UTC by atehrani
Modified: 2011-01-28 20:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Screenshot (63.87 KB, text/plain)
2008-04-12 20:41 UTC, atehrani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description atehrani 2008-04-12 20:41:13 UTC
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.
Comment 1 atehrani 2008-04-12 20:41:39 UTC
Created attachment 60092 [details]
Screenshot
Comment 2 Martin Krauskopf 2008-04-14 09:15:57 UTC
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.
Comment 3 rweaver 2008-04-22 18:29:11 UTC
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
Comment 4 Martin Krauskopf 2008-08-05 14:58:57 UTC
JRuby can't handle native C extensions. We should make this somehow explicit in NetBeans to prevent confusions like this
one.
Comment 5 Martin Krauskopf 2008-08-05 14:59:20 UTC
*** Issue 133816 has been marked as a duplicate of this issue. ***
Comment 6 Martin Krauskopf 2008-08-05 14:59:46 UTC
*** Issue 133766 has been marked as a duplicate of this issue. ***
Comment 7 Martin Krauskopf 2008-08-06 16:10:34 UTC
*** Issue 135861 has been marked as a duplicate of this issue. ***
Comment 8 Martin Krauskopf 2008-08-06 16:12:40 UTC
*** Issue 138147 has been marked as a duplicate of this issue. ***
Comment 9 Martin Krauskopf 2008-08-06 16:13:52 UTC
A lot of dupes. Increasing priority, will try to resolve somehow for 6.5.
Comment 10 Martin Krauskopf 2008-08-12 10:01:00 UTC
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.