From: Chad Fowler Date: 2004-05-10T19:42:44+09:00 Subject: Re: running gem On Mon, 10 May 2004 15:50:04 +0900, why the lucky stiff wrote: > > Chad Fowler wrote: > > We us a program called "env" with the argument "ruby" to > > find ruby in the path and run the script with whatever ruby was found > > in the path. > > In the classic install.rb, the path to ruby is used rather than 'env'. > This is great for situations where ruby isn't anywhere that can be found > by 'whereis' or 'env'. The path is built like so: > > require 'rbconfig' > c = ::Config::CONFIG > rubypath = c['bindir'] + '/' + c['ruby_install_name'] > > I like this approach a lot. This way, if I want to install RubyGems for > my Ruby 1.6 installation, then `ruby16 install.rb' will do the trick fine. > That's a good reason. I'll add that to the TODO list. Chad