Re: New Perl-Installation on new OS X

2011-06-10 Thread David Cantrell
On Thu, Jun 09, 2011 at 12:43:43PM +0200, Marek Stepanek wrote: But perhaps this list could help me, to get @INC and $PERL5LIB clean of /sw ... How is it possible, that I have $PERL5LIB set to %ENV: PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin in [my .profile] I only have one line:

Re: New Perl-Installation on new OS X

2011-06-10 Thread John Delacour
At 11:45 +0100 10/06/2011, David Cantrell wrote: Several fixes come to mind: ... 4. just set PERl5LIB to whatever you fancy after that line. This will, however, mean that you override any changes that may be made to your startup files elsewhere at a later date. What would be the effect

Re: New Perl-Installation on new OS X

2011-06-10 Thread Sherm Pendley
On Fri, Jun 10, 2011 at 10:34 AM, John Delacour j...@bd8.com wrote: At 11:45 +0100 10/06/2011, David Cantrell wrote: Several fixes come to mind: ... 4. just set PERl5LIB to whatever you fancy after that line.  This will,   however, mean that you override any changes that may be made to your

Re: New Perl-Installation on new OS X

2011-06-10 Thread John Delacour
At 10:38 -0400 10/06/2011, Sherm Pendley wrote: What would be the effect of setting a value (or no value) for PERL5LIB in ~/.MacOSX/environment.plist? That plist is for setting up environment variables for GUI apps. It has no effect on shell sessions. Obviously I'm missing something.

Re: New Perl-Installation on new OS X

2011-06-10 Thread Doug McNutt
At 10:38 -0400 6/10/11, Sherm Pendley wrote: On Fri, Jun 10, 2011 at 10:34 AM, John Delacour j...@bd8.com wrote: What would be the effect of setting a value (or no value) for PERL5LIB in ~/.MacOSX/environment.plist? That plist is for setting up environment variables for GUI apps. It has no

Re: New Perl-Installation on new OS X

2011-06-10 Thread Sherm Pendley
On Fri, Jun 10, 2011 at 11:11 AM, John Delacour j...@bd8.com wrote: At 10:38 -0400 10/06/2011, Sherm Pendley wrote:   What would be the effect of setting a value (or no value) for PERL5LIB in  ~/.MacOSX/environment.plist? That plist is for setting up environment variables for GUI apps. It

Re: New Perl-Installation on new OS X

2011-06-10 Thread David Cantrell
On Fri, Jun 10, 2011 at 04:11:43PM +0100, John Delacour wrote: At 10:38 -0400 10/06/2011, Sherm Pendley wrote: What would be the effect of setting a value (or no value) for PERL5LIB in ~/.MacOSX/environment.plist? That plist is for setting up environment variables for GUI apps. It has

Re: New Perl-Installation on new OS X

2011-06-10 Thread John Delacour
At 16:47 +0100 10/06/2011, David Cantrell wrote: Are you using Terminal.app? That's a GUI application, so it takes effect, and is then inherited by the shell. Try sshing into your Mac from elsewhere. Right. I ran a script from cgi-bin on my local server and indeed this key was missing.

RE: New Perl-Installation on new OS X

2011-06-10 Thread Jan Dubois
On Fri, 10 Jun 2011, Sherm Pendley wrote: Yes, but since .profile is evaluated later, whatever it does will override what's set in the plist. Thus, changes in the plist will have no effect on shell sessions that set the same variable. I use this line in my .bash_profile to make sure I use the

Re: New Perl-Installation on new OS X

2011-06-10 Thread Sherm Pendley
On Fri, Jun 10, 2011 at 2:27 PM, Jan Dubois j...@activestate.com wrote: On Fri, 10 Jun 2011, Sherm Pendley wrote: Yes, but since .profile is evaluated later, whatever it does will override what's set in the plist. Thus, changes in the plist will have no effect on shell sessions that set the

RE: New Perl-Installation on new OS X

2011-06-10 Thread Jan Dubois
On Fri, 10 Jun 2011, Sherm Pendley wrote: But the question is, should it be done for PERL5LIB? That affects *all* Perls, and if you've included the path to modules compiled for (say) 5.12, but you're running 5.10, those modules won't work. Ah, yes, sorry, lost track of the real topic of the

RE: New Perl-Installation on new OS X

2011-06-10 Thread John Delacour
At 13:21 -0700 10/06/2011, Jan Dubois wrote: I think a better way to modify your @INC is on a per-installation basis. For Apple's Perl you have the AppendToPath and PrependToPath mechanism... There is no PrependToPath file by default, but you can create one yourself, and all directories listed