sudo apt-get install php7.2-bcmath //安装扩展文件后,找到文件路径,添加到php.ini配置文件中即可。流程简单,却遇到了问题。
Can‘t exec "/sbin/insserv": Permission denied at /usr/sbin/update-rc.d line 246. subprocess installed post-installation script returned error exit status 255 Sub-process /usr/bin/dpkg returned an error code (1)
/usr/lib/php/20170718/bcmath.so //这个20170718目录是777权限 /usr/lib/php/20190902/bcmath.so //这个20190902目录是Linux默认的目录权限
ubuntu服务器上安装PHP扩展bcmath遇到的问题Sub-process /usr/bin/dpkg returned an error code (1)
原文:https://www.cnblogs.com/bneglect/p/12163750.html