Perl error, once and for all

Bradley Giesbrecht brad at pixilla.com
Tue Mar 3 07:30:18 PST 2009


On Mar 1, 2009, at 5:11 PM, Vincent Lefevre wrote:

> On 2009-03-02 01:18:41 +0100, Vincent Lefevre wrote:
>> Yes, but MacPorts should not override the user's settings (i.e. it
>> should test whether PERL5LIB is already set...). One should end up
>> with something like:
>>
>> if [ -n "$PERL5LIB" ]; then
>>  PERL5LIB="${PERL5LIB}:/opt/local/lib/perl5/vendor_perl"
>> else
>>  export PERL5LIB
>>  PERL5LIB="/opt/local/lib/perl5/vendor_perl"
>> fi

My path to p5's looks like this:
	/opt/local/lib/perl5/vendor_perl/5.8.9/

Wouldn't the full path including the version dir need to be added to  
PERL5LIB?

Are you suggesting using this in Portfiles?

If so I guess we would need to test for which version of perl is  
active and then set the path.

Could a macports perl5 port group do that?

If I have perl5.8 active and install a p5 and then deactivate perl5.8  
and activate perl5.10 should I expect my p5 to be active and functional?


//Brad


More information about the macports-users mailing list