PHP 7.2.8编译安装bcmath扩展后,重启服务,出现以下报错信息:
<b>Warning</b>: PHP Startup: Invalid library (maybe not a PHP library) 'bcmath.so' in <b>Unknown</b> on line <b>0</b><br />
解决办法:返回到之前,删除bcmath.so模块,make clean,重新编译和安装
[root@ecs-784e bcmath]# rm -fr /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/bcmath.so
[root@ecs-784e bcmath]# make clean
[root@ecs-784e bcmath]# ./configure --with-php-config=/usr/local/php/bin/php-config
[root@ecs-784e bcmath]# make && make install
重启php-fpm,模块添加成功.