LoginSignup
2

More than 5 years have passed since last update.

MacでNet::SSH2をインストールする

Posted at

前提条件

  • 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

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2