Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-SSH2 CPAN distribution.

Report information
The Basics
Id:
132807
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
judd.taylor [...] cpii.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



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

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
On Thu Jun 11 16:24:27 2020, judd.taylor@cpii.com wrote:
Show quoted text
> 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
There are some post on StackOverflow and other forums by people facing a similar problem, and it seems that the common cause is having INSTALL_BASE set via some environment variable. Specifically it seems that local::lib does it. So, could you check your environment variables and ensure there is no one setting INSTALL_BASE?
Subject: Re: [EXT}[rt.cpan.org #132807] Build bug when prefix is defined on command line
Date: Fri, 12 Jun 2020 14:47:17 +0000
To: "bug-Net-SSH2@rt.cpan.org" <bug-Net-SSH2@rt.cpan.org>
From: "Taylor, Judd" <judd.taylor@cpii.com>
Salvador,

Thanks for getting back to be. I've verified that INSTALL_BASE is not set in my environment, so something in the build system must be setting that. I searched with grep the files in the distribution, and I can't see it, so it must be some 3rd party lib in the build process setting this variable.

[...@... Net-SSH2-0.69]$ echo $INSTALL_BASE

[...@... Net-SSH2-0.69]$

Thanks,
   Judd


From: Salvador Fandino Garcia via RT <bug-Net-SSH2@rt.cpan.org>
Sent: Friday, June 12, 2020 1:50 AM
To: Taylor, Judd <judd.taylor@cpii.com>
Subject: [EXT}[rt.cpan.org #132807] Build bug when prefix is defined on command line
 
CAUTION: This email originated from outside of Communications & Power Industries. Do not click links or open attachments unless you recognize the sender and know the content is safe.


<URL: https://rt.cpan.org/Ticket/Display.html?id=132807 >

On Thu Jun 11 16:24:27 2020, judd.taylor@cpii.com wrote:
> 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

There are some post on StackOverflow and other forums by people facing a similar problem, and it seems that the common cause is having INSTALL_BASE set via some environment variable. Specifically it seems that local::lib does it.

So, could you check your environment variables and ensure there is no one setting INSTALL_BASE?

Subject: Re: [EXT}[rt.cpan.org #132807] Build bug when prefix is defined on command line
Date: Fri, 12 Jun 2020 18:20:53 +0200
To: bug-Net-SSH2@rt.cpan.org
From: Salvador Fandiño <sfandino@yahoo.com>
On 12/6/20 16:47, Taylor, Judd via RT wrote:
Show quoted text
> Queue: Net-SSH2 > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=132807 > > > Salvador, > > Thanks for getting back to be. I've verified that INSTALL_BASE is not set in my environment, so something in the build system must be setting that. I searched with grep the files in the distribution, and I can't see it, so it must be some 3rd party lib in the build process setting this variable. > > [...@... Net-SSH2-0.69]$ echo $INSTALL_BASE
There are several environment variables that may set the INSTALL_BASE. Look in all of them!
Subject: Re: [EXT}Re: [EXT}[rt.cpan.org #132807] Build bug when prefix is defined on command line
Date: Fri, 12 Jun 2020 19:53:31 +0000
To: "bug-Net-SSH2@rt.cpan.org" <bug-Net-SSH2@rt.cpan.org>
From: "Taylor, Judd" <judd.taylor@cpii.com>
I don't understand your response. Environment variables can't set anything... software must do that. Do you want an entire listing of my environment variables? Or do you have some list of specific ones that I should be looking for? Can you share the stack overflow issue you found?

Thanks,
    Judd


From: Salvador \"Fandiño\" via RT <bug-Net-SSH2@rt.cpan.org>
Sent: Friday, June 12, 2020 11:21 AM
To: Taylor, Judd <judd.taylor@cpii.com>
Subject: [EXT}Re: [EXT}[rt.cpan.org #132807] Build bug when prefix is defined on command line
 
CAUTION: This email originated from outside of Communications & Power Industries. Do not click links or open attachments unless you recognize the sender and know the content is safe.


<URL: https://rt.cpan.org/Ticket/Display.html?id=132807 >


On 12/6/20 16:47, Taylor, Judd via RT wrote:
>         Queue: Net-SSH2
>   Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=132807 >
>
> Salvador,
>
> Thanks for getting back to be. I've verified that INSTALL_BASE is not set in my environment, so something in the build system must be setting that. I searched with grep the files in the distribution, and I can't see it, so it must be some 3rd party lib in the build process setting this variable.
>
> [...@... Net-SSH2-0.69]$ echo $INSTALL_BASE

There are several environment variables that may set the INSTALL_BASE.
Look in all of them!



This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.