1344 2022-04-28 16:51:38 /usr/local/php813/bin/phpize
1345 2022-04-28 16:51:46 ./configure --with-php-config=/usr/local/php813/bin/php-config
1346 2022-04-28 16:51:55 make && make install
以上三个命令都是在php安装完后发觉包有缺失的时候使用,例如mbstring的包找不到就必须用上面的方法独立安装:
1,进入原始安装包内ext/mbstring下
2,在当前目录下运行phpize,这里有的时候需要你提前写明phpize的完整路径;
3,运行./configure --with-php-config=/usr/local/php813/bin/php-config。 注意这里的php-config 不是一个文件夹,是php安装后一个文件地址;
4,运行make && make install 后就可以了,.so文件自动已经安装完成。
需要注意的是./configure 可能运行不正常,需要检查日志的提示。如果是mbstring可能提醒oniguruma缺失,oniguruma 可以yum 安装,但是oniguruma-devel其实也需要安装,如果yum 不能安装oniguruma-devel,请到https://pkgs.org/search/?q=oniguruma
找到对应的devel 文件,然后下载到本地后直接可以使用yum install xxx.rpm 就可以了。