macports handling perl paths

Joshua Root jmr at macports.org
Thu Mar 8 19:58:30 PST 2012


On 2012-3-9 14:40 , Daniel Bolgheroni wrote:
> Hi macports-dev@,
> 
> building a new port (p5-net-openssh), I'm having an issue handling a
> perl path. The Portfile is at the end.
> 
> Installed OK and tried to run a perl script which makes use of it. But
> I've got this:
> 
> Can't locate Net/OpenSSH.pm in @INC (@INC contains:
> /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12
> /Network/Library/Perl/5.12/darwin-thread-multi-2level
> /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.3
> /System/Library/Perl/5.12/darwin-thread-multi-2level
> /System/Library/Perl/5.12
> /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level
> /System/Library/Perl/Extras/5.12 .) at confsync/cs line 67.
> BEGIN failed--compilation aborted at confsync/cs line 67.
> 
> According to the Portfile, OpenSSH.pm is installed at:
> 
> /opt/local/lib/perl5/vendor_perl/5.12.3/Net/OpenSSH.pm
> 
> Any hints here?

Are you running /opt/local/bin/perl5.12 and not e.g. /usr/bin/perl?

This is really more of a -users questions than a -dev question BTW.

- Josh


More information about the macports-dev mailing list