前提条件
- Homebrewインストール済み
- cpanmインストール済み
libssh2のインストール
あらかじめlibssh2をインストールしておく。
% brew install libssh2
==> Downloading http://www.libssh2.org/download/libssh2-1.4.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/libssh2-1.4.3.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libssh2/1.4.3 --with-openssl --with-libz
==> make install
? /usr/local/Cellar/libssh2/1.4.3: 177 files, 1.3M, built in 24 seconds
Net::SSH2のインストール
% cpanm Net::SSH2
--> Working on Net::SSH2
Fetching http://www.cpan.org/authors/id/R/RK/RKITOVER/Net-SSH2-0.53.tar.gz ... OK
Configuring Net-SSH2-0.53 ... OK
Building and testing Net-SSH2-0.53 ... OK
Successfully installed Net-SSH2-0.53
1 distribution installed