aapanel问题汇总

Missing BC Math or GMP extension相关报错GNU MP Library version 4.2 or greater required

Missing BC Math or GMP extension相关报错GNU MP Library version 4.2 or greater required

这个错误,在服务器安装扩展就行:

apt install php7.4-gmp
apt install php7.4-bcmath

另外一种情况,在aapanel里,gmp装不上,可以看日志:

/tmp# tail -100 panelExec.log

看到:

checking for __gmpz_rootrem in -lgmp... no
configure: error: GNU MP Library version 4.2 or greater required.
make: *** No targets specified and no makefile found.  Stop.
error
|-Successify --- Command executed! ---

根据提示是lib库没有,手动操作一下:
apt-get install libgmp-dev

在aapanel继续install gmp 扩展,可以安装,查看panelExec.log:

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /www/server/php/80/lib/php/extensions/no-debug-non-zts-20200930/
Installing header files:          /www/server/php/80/include/php/
===============================================
successful!
|-Successify --- Command executed! ---

安装成功了。

root@wmydt:/tmp# php -m|grep gmp
gmp

京ICP备11047313号-21