RE: Can't install warbler 0.9.5?

I couldn’t install warbler using gem 1.2.0

This is the error that I get:

D:\master\ruby\rubygems-1.2.0>jruby -S jgem install warbler
JRuby limited openssl loaded. gem install jruby-openssl for full
support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:32:
in initialize': getuid unsupported on this platform (NotImplementedError) from D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/spec_fetch er.rb:32:innew’
from
D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/spec_fetch
er.rb:32:in fetcher' from D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/dependency _installer.rb:94:infind_gems_with_sources’
from
D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/dependency
_installer.rb:187:in find_spec_by_name_and_version' from D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/dependency _installer.rb:208:ininstall’
from
D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/commands/i
nstall_command.rb:73:in execute' from D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/commands/i nstall_command.rb:70:ineach’
from
D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/commands/i
nstall_command.rb:70:in execute' from D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/command.rb :136:ininvoke’
from
D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/command_ma
nager.rb:105:in process_args' from D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/command_ma nager.rb:75:inrun’
from
D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/gem_runner
.rb:39:in `run’
from D:/javastuff/jruby-1.1.2/bin/jgem:22

Did anyone encounter this also?

Many thanks

Which OS + JVM are you using? If rubygems 1.2.0 requires getuid
support then that will bump priority of getting JNA-Posix working
better on 64 bit VMs.

-Tom

On Tue, Jun 24, 2008 at 10:25 PM, Partogi, Joshua
[email protected] wrote:

initialize’: getuid unsupported on this platform (NotImplementedError)
D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/dependency
from
nager.rb:75:in run' from D:/javastuff/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/gem_runner .rb:39:inrun’
from D:/javastuff/jruby-1.1.2/bin/jgem:22

Did anyone encounter this also?

Many thanks


Blog: http://www.bloglines.com/blog/ThomasEEnebo
Email: [email protected] , [email protected]


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Tom,

On Wed, Jun 25, 2008 at 4:50 PM, Thomas E Enebo [email protected]
wrote:

Which OS + JVM are you using? If rubygems 1.2.0 requires getuid
support then that will bump priority of getting JNA-Posix working
better on 64 bit VMs.

Looks like it was on Windows, and currently we (well, JRuby) instead
of returning 0, raise an error. I think we have a bug for that with
some pending patch that attempts to implement that method on Windows
fully.

Well, MRI always returns 0, and maybe we should just do the same.

Indeed, in RubyGems 1.2 I see that new code was added that uses
Process.uid and FileStat.uid in the following way:

@update_cache = File.stat(Gem.user_home).uid == Process.uid

On Windows, MRI always returns true here, JRuby raises error, and if
we are to provide non-trivial uid impl with JRuby, then at least it
should somehow be in sync with stat#uid. But it seems just returning 0
would be much simpler and more compatible way. :slight_smile:

Thanks,
–Vladimir


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Wed, Jun 25, 2008 at 10:05 AM, Vladimir S. [email protected]
wrote:

But the situation is similar, most Process methods like ppid, uid,
euid, egid, etc, all return 0 on Windows, while JRuby raises
NotImplementedError.

We need to fix that (at least uid) in order for RubyGems 1.2 to work on Windows.

Ok I will change at least uid on windows to return 0.

-Tom


Blog: http://www.bloglines.com/blog/ThomasEEnebo
Email: [email protected] , [email protected]


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Ah, I spoke too soon.

On Wed, Jun 25, 2008 at 4:58 PM, Vladimir S. [email protected]
wrote:

Looks like it was on Windows, and currently we (well, JRuby) instead
of returning 0, raise an error. I think we have a bug for that with
some pending patch that attempts to implement that method on Windows
fully.

Actually, the bug I meant: http://jira.codehaus.org/browse/JRUBY-2639
is about ppid implementation, not about uid.

But the situation is similar, most Process methods like ppid, uid,
euid, egid, etc, all return 0 on Windows, while JRuby raises
NotImplementedError.

We need to fix that (at least uid) in order for RubyGems 1.2 to work on
Windows.

Thanks,
–Vladimir


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email