rgebbie has asked for the wisdom of the Perl Monks concerning the following question:
I have seen a lot of postings about problems installing Net::SSH2, but none seem to cover my issue. I have verified that I have dealt with all the dependencies, like libssh2, OpenSSL, etc. I have seen the lib and inc flags to use on the perl Makefile.PL command line. That is where I run into problems. (This is on Linux)
If I specify lib=/usr/local/lib (where libssh2 is), then run make, I get:
Do I need to have some kind if library path set?Running Mkbootstrap for Net::SSH2 () chmod 644 SSH2.bs rm -f blib/arch/auto/Net/SSH2/SSH2.so LD_RUN_PATH="/usr/local/lib:/usr/lib64:/lib64" gcc -shared -O2 -g -pi +pe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --par +am=ssp-buffer-size=4 -m64 -mtune=generic SSH2.o -o blib/arch/auto/Ne +t/SSH2/SSH2.so \ -L/usr/local/lib -lssh2 -lz -lssl -lcrypto \ /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status make: *** [blib/arch/auto/Net/SSH2/SSH2.so] Error
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Another ssh2 install problem
by perl514 (Pilgrim) on Dec 20, 2012 at 03:21 UTC | |
|
Re: Another ssh2 install problem
by salva (Canon) on Dec 20, 2012 at 08:52 UTC | |
|
Re: Another ssh2 install problem
by Anonymous Monk on Dec 20, 2012 at 02:16 UTC | |
|
Re: Another ssh2 install problem
by zentara (Cardinal) on Dec 20, 2012 at 10:10 UTC |