Or you can use local::lib and be happy. You can find a recipe here: http://www.izut.com/articles/files/7156ee84b1fa9ad28f2a4ab0b94f0a0a-0.html
The recipe says to put something into your ~/.bashrc, which works perfectly. Igor. 2009/1/7 Chas. Owens <chas.ow...@gmail.com>: > On Wed, Jan 7, 2009 at 11:21, Adam Witney <awit...@sgul.ac.uk> wrote: >> >> On 7 Jan 2009, at 16:19, Chas. Owens wrote: >> >>> On Wed, Jan 7, 2009 at 11:13, Adam Witney <awit...@sgul.ac.uk> wrote: >>>>>> >>>>>> Try adding this to your ~/.profile >>>>>> >>>>>> export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8 >>>>> >>>>> OS X 10.5 (or at least my version of 10.5) uses ~/.bash_profile not >>>>> ~/.profile for user overrides to the default profile (/etc/bashrc). >>>>> If this is a multiuser machine and you want the other users to see the >>>>> modules as well you can set it in the default profile instead of your >>>>> own. >>>> >>>> I think either ~/.profile or ~/.bash_profile will work. My ~/.profile was >>>> created by a previous fink installation if i remember correctly. >>> >>> Check .bash_profile, there is probably a line like >>> >>> . ~/.profile >>> >>> in it. I don't think it was Fink that added that, Fink has always just >>> added >>> >>> test -r /sw/bin/init.sh && . /sw/bin/init.sh >>> >>> to my ~/.bash_profile. >> >> I don't have a ~/.bash_profile :-) >> > > Interesting, I just created a new user to see what it would create and > it appears as if there is no ~/.profile or ~/.bash_profile for new > users. So if you have either one, then you must have created it for > yourself. Very odd, I would have expected OS X to create one of the > two by default (even if it was just a skeleton). > > -- > Chas. Owens > wonkden.net > The most important skill a programmer can have is the ability to read. > -- Igor Sutton Lopes <igor.sut...@gmail.com>