Forum: Ruby No such file to load -- rubygems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fa0d14a176f060c96eef797fa48e6bcc?d=identicon&s=25 unknown (Guest)
on 2005-12-29 14:38
(Received via mailing list)
i've installed ruby 1.8.4 (on MacOS X 10.4.3) in /usr/local

when i want to update the system :
sudo gem update --system
i get the following error message :
ruby: No such file to load -- rubygems (LoadError)

i've set some env vars :
% echo $RUBYOPT
-rrubygems
% echo $GEM_HOME
/usr/local
then, i'm stuck...
37a3c73ffbf864e4b28f7f2384ee12ce?d=identicon&s=25 Timothy Hunter (tim-hunter)
on 2005-12-29 14:59
(Received via mailing list)
Une bévue wrote:
> % echo $GEM_HOME
> /usr/local
> then, i'm stuck...

Looks like you need to install Rubygems.
Fa0d14a176f060c96eef797fa48e6bcc?d=identicon&s=25 unknown (Guest)
on 2005-12-29 15:03
(Received via mailing list)
Une bévue <pere.noel@laponie.com> wrote:

> when i want to update the system :
> sudo gem update --system
> i get the following error message :
> ruby: No such file to load -- rubygems (LoadError)

this is because of my PATH :
%which ruby
/usr/bin/ruby  //the default install on MacOS X
changing the PATH order, makes it ok ))
10d4acbfdaccb4eee687a428ca00a5d8?d=identicon&s=25 Jim Weirich (weirich)
on 2005-12-29 15:03
unknown wrote:
> i've installed ruby 1.8.4 (on MacOS X 10.4.3) in /usr/local
>
> when i want to update the system :
> sudo gem update --system
> i get the following error message :
> ruby: No such file to load -- rubygems (LoadError)
>
> i've set some env vars :
> % echo $RUBYOPT
> -rrubygems
> % echo $GEM_HOME
> /usr/local
> then, i'm stuck...

Obvious question ... have you installed rubygems into the new Ruby
instance?  It looks like you might have a gems install hanging around
from an earlier version of Ruby (i.e. it is finding the "gem" command),
but its not finding the rubygems.rb library.

--
-- Jim Weirich
Fa0d14a176f060c96eef797fa48e6bcc?d=identicon&s=25 unknown (Guest)
on 2005-12-29 15:15
(Received via mailing list)
Timothy Hunter <cyclists@nc.rr.com> wrote:

> Looks like you need to install Rubygems.
right and not right ))
not right because i've allready installed rubygems.
however only for ruby in /usr/local
on macos x their is a "builtin" ruby 1.8.2
and the PATH gaves the default ruby, i've changed the order for the path
and that's ok, /usr/local/bin/ruby is choosen...
Fa0d14a176f060c96eef797fa48e6bcc?d=identicon&s=25 unknown (Guest)
on 2005-12-29 15:18
(Received via mailing list)
Jim Weirich <jim@weirichhouse.org> wrote:

> Obvious question ... have you installed rubygems into the new Ruby
> instance?  It looks like you might have a gems install hanging around
> from an earlier version of Ruby (i.e. it is finding the "gem" command),
> but its not finding the rubygems.rb library.

thanks i found it !
the default ruby wasn't the latest one ))
where i did install rubygems...
i had only to change the PATH from :
export PATH=PATH:/usr/local/bin:/Users/yvon/bin
to :
export PATH=/usr/local/bin:/Users/yvon/bin:PATH
now i get /usr/local/bin/ruby (the latest 1.8.4)...
This topic is locked and can not be replied to.