From: "Pål Bergström" Date: 2006-05-30T15:44:20+09:00 Subject: Re: Installation question Matthew Smillie wrote: > On May 29, 2006, at 21:56, P�l Bergstr�m wrote: > > So, once you've installed ruby from source (which you should do, the > version pre-installed on OSX is both old and slightly broken), you > will find things in the following places: > > /usr/bin/ruby, /usr/lib/ruby - OSX included installations. Do not > touch! > > /usr/local/bin/ruby - ruby interpreter > /usr/local/bin/irb - interactive shell > /usr/local/lib/ruby/1.8 - libraries for ruby 1.8 > /usr/local/lib/ruby/site_ruby - standard location for extra libraries > you might install > (and if you install rubygems) > /usr/local/lib/ruby/gems - where gems get installed > > If you haven't done so to begin with, I'd suggest finding a good set > of instructions for setting up Ruby and Rails. This one is pretty > comprehensive, especially when it comes to setting up paths (which is > pretty important): > > http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger > > I will warn you that in the last few months a couple of the > cut'n'paste installation steps have gone slightly out of date - it > ought to be simple enough to find the downloads you need from the > URLs given, though. > > As a last warning - you shouldn't put your own work (whether it's > Rails, plain ruby, or any other language) under the /usr > directories. Keep it somewhere under your home directory, or you'll > risk losing it all when you run Software Update. > > best of luck, > matthew smillie. > > > Addendum: > > On May 29, 2006, at 22:41, Austin Ziegler wrote: >> % which ruby >> > > This will show you which version of ruby appears first in your path. > If everything's set up correctly, it should say "/usr/local/bin/ruby". Thanks for an excellent explanation Matthew. :-) This helps me a lot. I installed using the hivelogic article. But as I got problems with Eclipse and RadRails to actually create the files in Rails (as I can do using the terminal) I got suspicious and wondered if I've done it right. -- Posted via http://www.ruby-forum.com/.