1.8.4 preview1 win32 error

S

simonharrison

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?
 
J

Jamis Buck

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
 
T

ts

S> 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
 
G

gabriele renzi

(e-mail address removed) 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
 
S

simonharrison

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!
 
S

simonharrison

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]
 
S

Stefan Lang

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

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
 
G

gabriele renzi

(e-mail address removed) 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 ;)
 
S

simonharrison

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top