From: Michael Greenly Date: 2006-11-27T07:30:41+09:00 Subject: Re: site_ruby Robert Dober wrote: > On 11/26/06, Trans wrote: >> /usr/lib/ruby) it's really only by the grace of the version folder >> (1.8) that gems can use this location cleanly. Unfortunately Debian >> packages completely ignore this distinction and install ruby packages >> right in there with the standard lib --which makes it impossible to >> distingusih standard libs from non-standard (not nice). > > > Ahh I failed to notice, well I realized that apt-get was not going well > with > gem, good to know why. > That amongst other problems I have posted about recently have driven me > to > switch from Sarge to Gentoo in our > network of routers and firewalls. > It's possible to mix the two just fine. Install ruby from apt normally. When you install rubygems just use something like: ruby setup.rb --prefix=/usr/local --siteruby=/usr/local/lib/site_ruby Then add /usr/local/lib/site_ruby/1.8/gems/bin to the $PATH Everything behaves as expected. I wish there was a way to specifc where rubygems put the executables of gems it installs. then I would just set it to /usr/local/bin and not bother with having to modify $PATH but I haven't found a way to do that -- Posted via http://www.ruby-forum.com/.