macports handling perl paths
Bradley Giesbrecht
pixilla at macports.org
Fri Mar 9 13:27:33 PST 2012
On Mar 8, 2012, at 7:40 PM, 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.
>
What command are you executing to produce this output?
Using the authors sample program works for me:
http://search.cpan.org/~salva/Net-OpenSSH-0.57/lib/Net/OpenSSH.pm#SYNOPSIS
The test seemed to need net::sftp:foreign so here is a port if you like:
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
PortGroup perl5 1.0
perl5.setup Net-SFTP-Foreign 1.69
maintainers devio.us:dbolgheroni
platforms darwin
description Net::SFTP::Foreign implements an SFTP client in Perl.
long_description Net::SFTP::Foreign implements an SFTP client in Perl using the native \
SSH client application to establish the connection to the remote host. \
implemented on top of OpenSSH binary client (ssh).
checksums rmd160 c907ee1daf30525f90a4da5bd89e54be5bacc8f1 \
sha256 0ab8e20759f30ed64dd9a8d66f5e22ec4df291300c6313973817422adfab7358
if {${perl5.major} != ""} {
depends_lib-append port:libssh2 \
port:p${perl5.major}-test-use-ok \
port:p${perl5.major}-expect
}
More information about the macports-dev
mailing list