On 6/18/05, Joseph Alotta <jalotta / earthlink.net> wrote:
> Greetings,
> 
> I am trying to install rubygems on a clean install of Tiger.  It
> gives me the message that rubygems is missing.  Well, that is what I
> am trying to install.  Please give me some help.
> 
> 
> Joe.
> 
> 
> 
> 
> 
> [PowerBook-G4:~/Desktop/gems/rubygems-0.8.10] jja% setenv
> PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/
> Users/jja/bin:./
> SECURITYSESSIONID=72833b0
> HOME=/Users/jja
> SHELL=/bin/bash
> USER=jja
> __CF_USER_TEXT_ENCODING=0x1F5:0:0
> TERM_PROGRAM=Apple_Terminal
> TERM_PROGRAM_VERSION=133
> TERM=xterm-color
> HOSTTYPE=powermac
> VENDOR=apple
> OSTYPE=darwin
> MACHTYPE=powerpc
> SHLVL=1
> PWD=/Users/jja/Desktop/gems/rubygems-0.8.10
> LOGNAME=jja
> GROUP=jja
> HOST=PowerBook-G4.local
> RUBYOPT=rrubygems
> [PowerBook-G4:~/Desktop/gems/rubygems-0.8.10] jja% ls
> #README#        README          TODO            examples
> pkgs            scripts
> #setup.rb#      Rakefile        bin             gemspecs        post-
> install.rb setup.rb
> ChangeLog       Releases        doc             lib
> redist          test
> [PowerBook-G4:~/Desktop/gems/rubygems-0.8.10] jja% which ruby
> /usr/bin/ruby
> [PowerBook-G4:~/Desktop/gems/rubygems-0.8.10] jja% ruby -v
> ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]
> [PowerBook-G4:~/Desktop/gems/rubygems-0.8.10] jja% ruby setup.rb
> ruby: No such file to load -- rubygems (LoadError)
> [PowerBook-G4:~/Desktop/gems/rubygems-0.8.10] jja%
> 
> 

Hi Joe!

The problem is that you have RUBYOPT set to require rubygems, but you
haven't yet installed RubyGems.

% setenv RUBYOPT   # Assuming this is how you blank out a variable in
csh---I haven't used it in a while
% sudo ruby setup.rb



-- 

Chad Fowler
http://chadfowler.com
http://rubycentral.org 
http://rubygarden.org 
http://rubygems.rubyforge.org (over 500,000 gems served!)