0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MAMPのPHP7にssh2拡張を使えるようにする

Posted at

なんか山ほどハマったんで、もしかしたら下記意外にも必用なのあったかも…

wget https://pecl.php.net/get/ssh2-1.1.2.tgz
tar zxvf ssh2-1.1.2.tgz
cd ssh2-1.1.2
/Applications/MAMP/bin/php/php7.2.14/bin/phpize 
./configure --with-php-config=/Applications/MAMP/bin/php/php7.2.14/bin/php-config
make 
sudo make install
  • phpize をフルパスで実行しないとmacOSのphpizeが使われるのでフルパスで実行してます。
  • ./configure でphp-configまでのパスを指定しないとダメ
0
1
0

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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?