1
Windows 7 (64 비트)에서 Cygwin 환경에 Net:SSH2
을 설치해야했습니다. 보통은 cpanm
으로 설치하려고했습니다.Cygwin에서 CPAN의 Net :: SSH2를 설치하는 방법
이미 필요한 Cygwin 패키지 (아래 참조)를 설치했지만 libssh2
라이브러리를 찾을 수 없어 Perl 빌드가 실패했습니다.
Net::SSH2
패키지에는 특수 텍스트 파일 BUILDING.WIN32
이 있지만 이는 모듈을 직접 작성하는 경우에만 유용하며 주로 MinGW를 참조합니다. 그럼 이건 도움이 안돼.
Entering Net-SSH2-0.53
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.59 ... Yes (7.02)
Running Makefile.PL
Configuring Net-SSH2-0.53 ... 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 line 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, 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.
Can't link/include C library 'ssh2', aborting.