Adding to @INC

2009-01-07 Thread Vic Norton
I just installed Mac OS X 10.5, and I'm trying to get Perl back up to snuff. My current @INC contains only /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl

Re: Adding to @INC

2009-01-07 Thread Adam Witney
On 7 Jan 2009, at 15:24, Vic Norton wrote: I just installed Mac OS X 10.5, and I'm trying to get Perl back up to snuff. My current @INC contains only /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level

Re: Adding to @INC

2009-01-07 Thread Chas. Owens
On Wed, Jan 7, 2009 at 10:30, Adam Witney awit...@sgul.ac.uk wrote: On 7 Jan 2009, at 15:24, Vic Norton wrote: I just installed Mac OS X 10.5, and I'm trying to get Perl back up to snuff. My current @INC contains only /System/Library/Perl/5.8.8/darwin-thread-multi-2level

Re: Adding to @INC

2009-01-07 Thread David Cantrell
On Wed, Jan 07, 2009 at 03:30:59PM +, 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

Re: Adding to @INC

2009-01-07 Thread Adam Witney
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

Re: Adding to @INC

2009-01-07 Thread Chas. Owens
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

Re: Adding to @INC

2009-01-07 Thread Adam Witney
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

Re: Adding to @INC

2009-01-07 Thread Chas. Owens
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

Re: Adding to @INC

2009-01-07 Thread Vic Norton
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 keyPERL5LIB/key string/opt/local/lib/perl5/site_perl/5.8.8/string to my ~/.MacOSX/environment.plist so Mac applications, e.g.,

Re: Adding to @INC

2009-01-07 Thread Doug McNutt
Mac OS neXt also provides for a file: $HOME/.MacOSX/environment.plist. .If it's not present you can create it and its hidden directory. Contents are environment variables that you would like defined even if you haven't opened a Terminal.app session. AppleScript's do shell script command,

Re: Adding to @INC

2009-01-07 Thread Vic Norton
Now I realize that export PERL5LIB=${PERL5LIB}:/opt/local/lib/perl5/site_perl/5.8.8 is overkill. The lines keyPERL5LIB/key string/opt/local/lib/perl5/site_perl/5.8.8/string in ~/.MacOSX/environment.plist do it all. Then $ENV{PERL5LIB} = /opt/local/lib/perl5/site_perl/5.8.8 and

Re: Adding to @INC

2009-01-07 Thread Vic Norton
That is exactly what has happened, Sherm. Thanks a lot. Prior to my recent installation of Leopard, I had used MacPorts to install Perl5.8.8. So I have 5.8.8 in two places, in /usr/bin and in /opt/ local/bin. And /opt/local/bin comes earlier in my PATH than /usr/bin. I'm going to have to