Hi, Hoping somebody can help me please, because I'm not very familiar with installing via CPAN. My machine is running Fedora 15 (64-bit), and I'm trying to install Net:SSH2 via CPAN, but I am running into problems (as shown by the output below). I resolved one previous issue, with it being unable to locate the C compiler, but I do not know how to progress further, from where I am now. It seems to start failing at the "Can't link/include 'libssh2.h', 'ssh2'" line. Perl version is v5.12.4.(64-bit).
cpan[1]> install Net::SSH2 Going to read '/root/.cpan/Metadata' Database was generated on Mon, 29 Aug 2011 05:27:45 GMT Running install for module 'Net::SSH2' Running make for R/RK/RKITOVER/Net-SSH2-0.39.tar.gz Checksum for /root/.cpan/sources/authors/id/R/RK/RKITOVER/Net-SSH2-0.3 +9.tar.gz ok Scanning cache /root/.cpan/build for sizes ...................................................................... +......DONE CPAN.pm: Going to build R/RK/RKITOVER/Net-SSH2-0.39.tar.gz Subroutine checklibs redefined at inc/Module/Install/CheckLib.pm line +11. Subroutine assertlibs redefined at inc/Module/Install/CheckLib.pm line + 25. Subroutine _author_side redefined at inc/Module/Install/CheckLib.pm li +ne 39. 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, wh +ich can be obtained from http://www.openssl.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 on the command line. E. +g.: perl Makefile.PL lib=$HOME/libssh2/lib inc=$HOME/libssh2/include Can't link/include 'libssh2.h', 'ssh2' No 'Makefile' created RKITOVER/Net-SSH2-0.39.tar.gz /usr/bin/perl Makefile.PL -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: RKITOVER/Net-SSH2-0.39.tar.gz : writemakefile NO -- No 'Makefile' c +reated
With regards to libssh2, then I have already checked to make sure it is installed, per below:
yum install libssh2 Loaded plugins: langpacks, presto, refresh-packagekit Setting up Install Process Package libssh2-1.2.7-1.fc15.x86_64 already installed and latest versi +on Nothing to do
In reply to Need Help Installing Net::SSH2 by DanielSpaniel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |