On Thu, Apr 26, 2001 at 10:30:00PM +0900, Jim Freeze wrote: > Hi: > > I am installing ruby on a virtual server FreeBSD machine. > I actually have it installed, but I would like the install > to setup the proper library path so I don't have to set > RUBYLIB in a shell. > > On the virtual server, instead of installing into > /usr/local/ > > you install into > > /usr/home/<myname>/usr/local > > I could not figure out which variable to set for configure > to handl this so I installed it thusly (that's a word, isn't it?) > > ./configuire > make > make DESTDIR=/usr/home/<myname> install If you run 'configure --help', among other things you'll see --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] To install Ruby in '/usr/home/<myname>/usr/local', you need configure --prefix=/usr/home/<myname>/usr/local ... (That's all standard GNU autoconf stuff which is, unfortunately, not documented in the Ruby distribution.) This will create a file 'config.h' containing #define RUBY_LIB "/usr/home/<myname>/usr/local/lib/ruby/1.6" #define RUBY_SITE_LIB "/usr/home/<myname>/usr/local/lib/site_ruby" and some other path "defines". David S. > > Now, this works great if I add the following to the env: > RUBYLIB=/user/home/<myname>/usr/local/lib/ruby/1.6 > > Ugh... How does Ruby know to look in /usr/local/lib/ruby/... > on a normal installation? What do I need to set so I don't > need the RUBYLIB env variable? > > Thanks > > > ========================================================= > Jim Freeze > jim / freeze.org > --------------------------------------------------------- > No comment at this time. > http://www.freeze.org > =========================================================