Subject: | Build bug when prefix is defined on command line |
Date: | Thu, 11 Jun 2020 20:24:11 +0000 |
To: | "bug-Net-SSH [...] rt.cpan.org" <bug-Net-SSH [...] rt.cpan.org> |
From: | "Taylor, Judd" <judd.taylor [...] cpii.com> |
I'm trying to use my cpan to rpm little factory thing, and this package fails since I try to define the PREFIX in the command line:
[]$ PERL5LIB=/tmp/mega_auto_build/... /usr/bin/perl Makefile.PL PREFIX=/tmp/mega_auto_build/centos7.4.1708-x86_64/root/usr
The libssh2 library is required by this module. If you don't have it, you can
download it from http://www.libssh2.org; you may also need OpenSSL, which can
be obtained from http://www.openssl.org , or libgcrypt, which can be obtained
from http://www.gnupg.org .
Debian: sudo aptitude install libssh2-1-dev
OpenSUSE: sudo zypper in libssh2-1 libssh2-devel
You can pass your libssh2 lib and include dirs (and extra link args) on the
command line. E.g.:
perl Makefile.PL lib=$HOME/libssh2/lib inc=$HOME/libssh2/include \
ldargs="-lz"
These can also be set through the LIBSSH2_LIB/LIBSSH2_INCLUDE/LIBSSH2_LDARGS
environment variables.
To build with libgcrypt instead of OpenSSL, pass 'gcrypt' as a parameter to
Makefile.PL, e.g.:
perl Makefile.PL gcrypt
If you want to build on Windows, see the file BUILDING.WIN32 in the
distribution.
Looking for libraries...
Analyzing file assertlib5o6ZKNdQ
Library ssh2 found in standard place
Detected crypto backend: openssl
Library z found in standard place
Library ssl found in standard place
Library crypto found in standard place
Only one of PREFIX or INSTALL_BASE can be given. Not both.
Removing the PREFIX bit causes it to work, but I need that relocation to work so I can create the RPM file for this system. Any ideas what's going on? I don't define INSTALL_BASE anywhere, and I don't see that string anywhere in the tarball for Net:SSH2.
Thanks,
Judd