Rubygems error

I am trying to get to the bottom of the following error:

jruby
script/server
/usr/local/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems.rb:723:in
set_paths': undefined methoduid’ for nil:NilClass
(NoMethodError)
from
/usr/local/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems.rb:719:in
each' from /usr/local/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems.rb:719:inset_paths’
from
/usr/local/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems.rb:526:in
path' from /usr/local/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:66:ininstalled_spec_directories’
from
/usr/local/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:56:in
`from_installed_gems’

jruby 1.1.5
java 1.5
gem 1.3.1
OS i5/OS AIX PASE

Commenting out line 723 takes care of the issue but I’d rather get a
more permanent fix.

Any ideas as to why the undefined method error is thrown? Should I post
to a different forum on this?

Thanks,

Pete


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Pete H. wrote:

I am trying to get to the bottom of the following error:

jruby
script/server
/usr/local/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems.rb:723:in
set_paths': undefined methoduid’ for nil:NilClass
(NoMethodError) from

Any ideas as to why the undefined method error is thrown? Should I post
to a different forum on this?

I thought this was supposed to be fixed in RubyGems 1.3.1, which we
shipped in 1.1.5. The problem is RubyGems expecting Etc methods to
return e.g. Passwd struct always if they’re implemented, and when we
return nil it’s blowing up. We support Etc methods when we’re able to
call native code, but it’s also valid for Etc methods to return nil when
there’s no capability to support them (as is the case on Windows).
RubyGems contains filters for windows, but not for those methods simply
returning nil.

Could you take it up with RubyGems folks? I know they had intended to
fix this for 1.3.1, but perhaps a couple cases snuck through.

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email