安装php8.1错误信息解决方案

分类: 服务器 > PHP

错误信息:

configure error cannot run c compiled programs

解决方案:

用uname -m 看下一下主机的平台

然后使用--host=x86_64(我的平台64bit )


错误信息:
configure: error: Package requirements (libxml-2.0 >=2.6) were not met:

No package 'libxml-2.0' found

解决方案:

sudo apt-get install libxml2

sudo apt-get install libxml2-dev


错误信息:

configure: error: Package requirements (sqlite3 >= 3.7.7) were not met:

No package 'sqlite3' found

解决方案:

sudo apt-get install sqlite3
sudo apt install libsqlite3-dev

来源:原创 发布时间:2022-07-17 23:29:06