1.8.4 preview1 win32 error

I've downloaded the binary release from garbagecollect.jp and now irb
and ri won't work. here's the error message when I type 'irb':

C:\ruby\bin\ruby: no such file to load -- ubygems (LoadError)

same error message when I try 'ri Array'

typing 'ruby -v' gives this:

ruby 1.8.4 (2005-10-29) [i386-mswin32]

any ideas anyone?

I suspect that you either need to install Rubygems again, or you need to change the RUBYOPT environment variable so that it doesn't include rubygems.

- Jamis

···

On Oct 30, 2005, at 10:12 AM, simonharrison@email.com wrote:

I've downloaded the binary release from garbagecollect.jp and now irb
and ri won't work. here's the error message when I type 'irb':

C:\ruby\bin\ruby: no such file to load -- ubygems (LoadError)

same error message when I try 'ri Array'

typing 'ruby -v' gives this:

ruby 1.8.4 (2005-10-29) [i386-mswin32]

any ideas anyone?

Ruby 1.8.4 has move lib path it seems.

T

simonharrison@email.com ha scritto:

I've downloaded the binary release from garbagecollect.jp and now irb
and ri won't work. here's the error message when I type 'irb':

C:\ruby\bin\ruby: no such file to load -- ubygems (LoadError)

same error message when I try 'ri Array'

typing 'ruby -v' gives this:

ruby 1.8.4 (2005-10-29) [i386-mswin32]

any ideas anyone?

I think that maybe you had the old one-click-installer installed, which set up the RUBYOPT environment variable to "rubygems" (aka "-r ubygems")
If you don't have rubygems installed in the site_ruby directory for the new packages, whenever you launch a ruby program it will try to load the ubygems.rb file and fail to find it.
You can try reinstalling rubygems or removing the rubyopt env variable.

HTH

No, at least not on my (Linux) system.

Regards,
  Stefan

···

On Sunday 30 October 2005 18:22, Trans wrote:

Ruby 1.8.4 has move lib path it seems.

Jamis, tried installing rubygems 0.8.11 but no joy. is rubygems now
part of standard distribution? if so what version? i don't want to go
back to 1.8.2. please help!

Thanks Gabrielle, you are right. did have the one click installer.
removed the env variable you suggested. new error message now. think it
may be dll related:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\xxxx>irb
C:/ruby/lib/ruby/1.8/irb/input-method.rb:97: [BUG] Segmentation fault
ruby 1.8.4 (2005-10-29) [i386-mswin32]

No, at least not on my (Linux) system.

You are right.

This is just that, on Ubuntu, some extra arguments are given when ruby is
compiled

vgs% ruby -rrbconfig -e 'p Config::CONFIG["configure_args"]'
"'--enable-frame-address' '--with-extra-site-search-path=/usr/local/lib/site_ruby/1.8/i386-linux' '--with-extra-search-path=/usr/lib/ruby/1.8/i386-linux' '--target=i486-linux-gnu' '--program-suffix=1.8' '--prefix=/usr' '--datadir=/usr/share' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--localstatedir=/var' '--with-sitedir=/usr/local/lib/site_ruby' '--with-default-kcode=none' '--with-dbm-type=gdbm_compat' '--with-tklib=tk8.4' '--with-tcllib=tcl8.4' '--with-tcl-include=/usr/include/tcl8.4' '--with-bundled-sha1' '--with-bundled-md5' '--with-bundled-rmd160' '--enable-pthread' '--enable-shared' '--enable-ipv6' '--with-lookup-order-hack=INET' '--disable-rpath' 'CFLAGS=-Wall -g -O2' 'target_alias=i486-linux-gnu'"
vgs%

Guy Decoux

Stefan Lang wrote:

···

On Sunday 30 October 2005 18:22, Trans wrote:
> Ruby 1.8.4 has move lib path it seems.

No, at least not on my (Linux) system.

So its a Debian thing? What linux are you running?

Thanks,
T.

ri now works, but irb stubbornly refuses to play ball.

SUSE 9.2, but I always installed Ruby from source,
since SUSE 9.2 comes with Ruby 1.6.8.
IIRC, Gentoo also had/has a non default site ruby directory.

Regards,
  Stefan

···

On Sunday 30 October 2005 18:37, Trans wrote:

Stefan Lang wrote:
> On Sunday 30 October 2005 18:22, Trans wrote:
> > Ruby 1.8.4 has move lib path it seems.
>
> No, at least not on my (Linux) system.

So its a Debian thing? What linux are you running?

simonharrison@email.com ha scritto:

ri now works, but irb stubbornly refuses to play ball.

mh.. there are issues with the ruby/readline exstension on win32 (that is the stuff that allows for tab completion).
Try running it with --noreadline.

PS
gabriele, just one "l" I'm a guy :wink:

sorry gabriele. did not mean to question your manhood. any idea when
the issue maybe fixed? next preview maybe...?