From: Eric Hodel Date: 2005-03-04T10:06:00+09:00 Subject: Re: ruby gems, and the require problem (was Re: RAA Status & b) --Apple-Mail-61-594641304 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 03 Mar 2005, at 16:48, Sam Roberts wrote: > Quoting jim@weirichhouse.org, on Fri, Mar 04, 2005 at 06:19:28AM +0900: >> >> You do need to assure that the rubygems package manager is loaded in >> order >> to take advantage of any gems on your system. There are basically >> three >> options: >> >> (1) Do a "require 'rubygems'" in your code. > > Change your ruby code. You have to add a require line somewhere in your code to load any library, so I don't see what the problem with this one is. Libraries have never magically appeared for me. >> (3) Set the RUBYOPT environment variable to be "rubygems". > > Environment setup is code as well, shell code, and very hard to do in > the face of multiple shells, ssh, X (where you don't generally have > control over the environment at all), etc. The only problem I've had with this is bourne-style shells vs. csh-style shells (BSDs typically make root's login shell a csh-style shell to keep you from foot-shooting, so I really don't want sharing). I have both bash and sh using the same config files for 7 different machines in a variety of environments. In none of these cases have I felt that I lacked any level of control over my environment, especially when using ssh or X. -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --Apple-Mail-61-594641304 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFCJ7RoMypVHHlsnwQRAro7AJ4y/bMGt28EHp6pVLx+Dtt0AlOdOgCguz8f JYZRmk0Q/AEjw+N0GQTJsjY= =DxC2 -----END PGP SIGNATURE----- --Apple-Mail-61-594641304--