宝塔面板Ubuntu 22 PHP7.4版本默认安装gmp扩展失败

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

解决处理,安装前运行

 

sudo apt-get update
sudo apt-get install libgmp-dev
之后直接宝塔后台点安装 PHP扩展即成功
Build complete. Don’t forget to run ‘make test’. Installing shared extensions: /www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/ Installing header files: /www/server/php/74/include/php/ =============================================== successful! |-Successify — 命令已执行! —

发表评论

邮箱地址不会被公开。 必填项已用*标注

click to changeSecurity Code