From: Tim Hunter Date: 2004-05-19T04:03:48+09:00 Subject: Re: Newbie installation problem: libraries? On Tue, 18 May 2004 14:40:16 -0400, Paul Emmons wrote: > I have recently installed ruby-1.8.1 on my Mandrake Linux system. > > Everything seems to be working except any programs with "require", such as > irb requiring "irb". > > I hope this is just a matter of ruby not finding its libraries, which are > actually here somewhere. > > Do you know how I can correct this problem? > > Thanks. Ruby searches a default list of directories. You can see that list by entering this command: ruby -e 'puts $:.join("\n")' On my Mandrake system the output looks like this: /usr/local/lib/ruby/site_ruby/1.8 /usr/local/lib/ruby/site_ruby/1.8/i686-linux /usr/local/lib/ruby/site_ruby /usr/local/lib/ruby/1.8 /usr/local/lib/ruby/1.8/i686-linux The exact list you see depends on how you installed Ruby. If you compiled from source, it should look pretty much like mine. If you installed from an .rpm, the prefix is probably '/usr' instead of '/usr/local' (assuming you took the default). Look in those directories to make sure everything looks okay. If not, try to determine what went wrong during the install. Did you get any error messages? How did you install? From source, or from an rpm?