环境与工具说明
- 环境: 2019 mbp16 macos 13.5
- 代码查看: CLion,PhpStorm
- 笔记: Typora
编译安装
wget https://www.php.net/distributions/php-8.2.9.tar.gz
tar -zxvf php-8.2.9.tar.gz
cd php-8.2.9
./configure --prefix=$HOME/php829 --enable-fpm
make && make install
说明:
1.configure: error: Please specify the install prefix of iconv with –with-iconv=<DIR>
解决: 增加 --with-iconv=$(brew --prefix libiconv
)(如果安装 libiconv 的情况)