From: cremes.devlist@... Date: 2006-11-28T02:50:09+09:00 Subject: Re: Ruby 1.8.5 on Mac OS X On Nov 27, 2006, at 11:25 AM, doog wrote: > On Mac OS X 10.4.8, Ruby 1.8.2 is installed in /usr/bin/ruby > I installed RubyGems and several libraries. > > I needed to upgrade to the latest version, > so I downloaded Ruby 1.8.5 source from: > http://www2.ruby-lang.org/en/20020102.html > which I installed in: > /usr/local/bin/rub > Now RubyGems and the libraries I had installed are not found. > > I can run ruby with this alias: > > ruby='/usr/local/bin/ruby' > > Is there a way to get RubyGems and the libraries to be > recognized by this new version? Or a way to install them > into the new version? Doug, you need to add "/usr/local/bin" to your PATH variable. It's apparent from this question that you don't understand some of the basics of OSX's UNIX shell behavior. Here's a link [1] to a set of basic UNIX tutorials which will give you a nice foundation for working in a shell environment going forward. In the meantime, fire up Terminal.app and do the following: 1. cd $HOME 2. echo 'PATH=/usr/local/bin:$PATH' >> .profile 3. echo 'export PATH' >> .profile Make sure you use single quotes instead of double quotes! Quit Terminal.app and then reopen it. At the shell prompt type 'which ruby' to confirm it returns '/usr/local/bin/ruby' to you. cr [1] http://www.ee.surrey.ac.uk/Teaching/Unix/