今回、CentOS6でやってみたら以前の方法でうまく行かなかったので書き直します。
というか、多分やれば出来たんだろうけど、もっと簡単な方法を見つけたので修正って感じです。
まずは、エラー画面:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pecl install channel://pecl.php.net/ssh2-0.11.3 | |
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update | |
downloading ssh2-0.11.3.tgz ... | |
Starting to download ssh2-0.11.3.tgz (23,062 bytes) | |
........done: 23,062 bytes | |
5 source files, building | |
running: phpize | |
sh: phpize: コマンドが見つかりません | |
ERROR: `phpize' failed |
phpizeって何??(・・?
Googleで検索したけど、いい回答が得られなかったです。
で、まぁやりたいのはPHPのSSH2ライブラリが使いたいだけなので、yumで検索してみました。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yum search all php | grep ssh2 | |
php-pecl-ssh2.x86_64 : Bindings for the libssh2 library |
ありました。(^O^)
ちなみに標準のリポジトリには無いようで、epelというリポジトリ を利用しています。
あとはインストール
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install php-pecl-ssh2 |
この後は、SSHdの設定をして接続できるようになります。