宝塔安装Nginx,PHP等失败解决

606次阅读
没有评论

共计 641 个字符,预计需要花费 2 分钟才能阅读完成。

宝塔安装 Nginx,PHP 等失败解决

缺少了 libxml2、libxslt 库导致的,复制下面的命令到终端中执行,安装这两个库,安装成功后再去安装 nginx

apt-get update
apt-get install libxml2 libxml2-dev libxslt-dev

安装 PHP8 以上版本时候,报错:

checking how to use *nroff to get plain text from man pages... -man
checking for pkg-config... (cached) /bin/pkg-config
checking for libcares options with pkg-config... no
checking that c-ares is good and recent enough... no
configure: error: c-ares library defective or too old
========================================================
Ubuntu 22.04.2 LTS
\l
Bit:64 Mem:3588M Core:2 gcc:11.4.0 cmake:3.22.1
Linux 5.15.0-73-generic x86_64
ERROR: php-8.1.21 install failed.
Please submit to https://forum.aapanel.com for help

解决办法:

sudo apt-get update
sudo apt-get install libc-ares-dev
正文完
加入官方交流QQ群:778957856
post-qrcode
 0
clark
版权声明:本站原创文章,由 clark 2023-08-07发表,共计641字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)