MAMP 安装 ssh2 扩展
1 | #1. 安装 libssh2 |
phpize 报错
缺少PHP的header头文件
1
2
3
4
5
6
7
8
9grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
# 安装 Xcode command line tools
xcode-select --install
# 若报错 xcode-select: error: command line tools are already installed, use "Software Update" to install updates, 安装header头文件SDK
cd /Library/Developer/CommandLineTools/Packages/
open macOS_SDK_headers_for_macOS_10.14.pkgCannot find autoconf.
1
2
3
4Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
# 运行命令
brew install autoconf