共计 641 个字符,预计需要花费 2 分钟才能阅读完成。
缺少了 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