From: "Ara.T.Howard" Date: 2005-11-11T23:14:11+09:00 Subject: Re: Putting -r ubygems in the path permanently? On Fri, 11 Nov 2005, David Brady wrote: > According to the Ruby on Rails download page, Gems is "the soon-to-be > official packaging format for Ruby libs/apps". > > Putting "ubygems" in the -r value of the command line for every invocation > of Ruby is getting old fast. > > How do I configure Ruby or my (linux) server so that, server wide, it looks > in ubygems for modules automatically? install ruby into /usr/local/ruby-1.8.3/ so the ruby program is /usr/local/ruby-1.8.3/bin/ruby make a small shell script named /usr/local/bin/ruby183 that looks something like #! /bin/sh RUBYOPT="-r rubygems" /usr/local/ruby-1.8.3/bin/ruby "$@" also google /etc/environment. -a -- =============================================================================== | ara [dot] t [dot] howard [at] gmail [dot] com | all happiness comes from the desire for others to be happy. all misery | comes from the desire for oneself to be happy. | -- bodhicaryavatara ===============================================================================