Re: MacPort: how to port perl?

[email protected] (Vic Norton)
Newsgroups perl.macosx
Message-ID <[email protected]>
I'm not sure what this proves, David. I've tried your trick 3 times  
and gotten three different answers. And I don't think PERL5LIB has  
anything to do with any of them.

### Test 1 ###
vic$ /usr/bin/perl -e '$,="\n";print @INC,"\n";'
/System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6
/Library/Perl/5.8.6/darwin-thread-multi-2level
/Library/Perl/5.8.6
/Library/Perl
/Network/Library/Perl/5.8.6/darwin-thread-multi-2level
/Network/Library/Perl/5.8.6
/Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.8.6
/Library/Perl/5.8.1/darwin-thread-multi-2level
/Library/Perl/5.8.1
.

### Test 2 ###
vic$ /usr/local/bin/perl5.8.8 -e '$,="\n";print @INC,"\n";'
/usr/local/lib/perl5/5.8.8/darwin-2level
/usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8/darwin-2level
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl
.

### Test 3 ###
vic$ /opt/local/bin/perl -e '$,="\n";print @INC,"\n";'
/opt/local/lib/perl5/5.8.8/darwin-2level
/opt/local/lib/perl5/5.8.8
/opt/local/lib/perl5/site_perl/5.8.8/darwin-2level
/opt/local/lib/perl5/site_perl/5.8.8
/opt/local/lib/perl5/site_perl
/opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level
/opt/local/lib/perl5/vendor_perl/5.8.8
/opt/local/lib/perl5/vendor_perl
.

Modules from MacPorts like Cript::SSLeay appear in the vendor_perl  
folder of /opt/local/lib/perl5.

Regards,

Vic

On Sep 9, 2008, at 9:07 AM, David Cantrell wrote:

> On Sun, Sep 07, 2008 at 06:23:13PM -0400, Vic Norton wrote:
>
>> As far as I can tell Perl on a Mac pays absolutely no attention the
>> environmental variable PERL5LIB.
>
> I'm afraid that's not the case:
>
> cowshed-door:~ david$ /usr/bin/perl -e '$,="\n";print @INC'
> /sw/lib/perl5
> /sw/lib/perl5/darwin
> /System/Library/Perl/5.8.6/darwin-thread-multi-2level
> /System/Library/Perl/5.8.6
> /Library/Perl/5.8.6/darwin-thread-multi-2level
> /Library/Perl/5.8.6
> /Library/Perl
> /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
> /Network/Library/Perl/5.8.6
> /Network/Library/Perl
> /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
> /System/Library/Perl/Extras/5.8.6
> /Library/Perl/5.8.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.