Thanks guys! That did the trick. I added
   export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8
to ~/.bash_profile = ~/.bashrc, and I also added
   <key>PERL5LIB</key>
   <string>/opt/local/lib/perl5/site_perl/5.8.8</string>
to my ~/.MacOSX/environment.plist so Mac applications, e.g., BBEdit, will also search in the right place.


On Jan 7, 2009, at 10:30 AM, Adam Witney wrote:


On 7 Jan 2009, at 15:24, Vic Norton wrote:

I plan to use CPANPLUS to install new packages and modules. Right now it installs them in
/opt/local/lib/perl5/site_perl/5.8.8
This seems like a good place, but how can I add this directory to @INC? I would prefer not having to start every script with
use lib '/opt/local/lib/perl5/site_perl/5.8.8';

Try adding this to your ~/.profile

export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8

On Jan 7, 2009, at 10:47 AM, Chas. Owens wrote:

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.

--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

Reply via email to