求助:lnmp1.9安装php失败
lnmp1.9安装php失败 nginx和mysql都安装成功了 就php安装不成功附上附件
链接:https://pan.baidu.com/s/1vuOQPw91a43A5NqVmaakzg
提取码:6666
checking whether to build with LIBXML support... yes
checking for libxml-2.0 >= 2.9.0... no
configure: error: Package requirements (libxml-2.0 >= 2.9.0) were not met:
No package 'libxml-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBXML_CFLAGS
and LIBXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
你这日志中半点libxml依赖包安装的信息都没有,要不就是修改了安装脚本或者可能你系统或系统源设置有问题
你可以执行 apt-get install libxml2-dev
apt-get search libxml2-dev
看看有什么返回信息 licess 发表于 2022-10-15 12:03
你这日志中半点libxml依赖包安装的信息都没有,要不就是修改了安装脚本或者可能你系统或系统源设置有问题
...
root@aliyun001:/# apt-get install libxml2-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libicu-dev : Depends: libicu70 (= 70.1-2) but 70.1-2ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
显示这个,是不是源的问题,腾讯云上装的好好地,阿里云上就是装不上 nonename 发表于 2022-10-15 13:16
root@aliyun001:/# apt-get install libxml2-dev
Reading package lists... Done
Building dependency tr ...
这个有可能是你系统之前添加了proposed预发布软件源安装了libicu后来又去掉了proposed源导致的依赖问题,可以参考:https://bbs.vpser.net/thread-26280-1-1.html licess 发表于 2022-10-16 09:28
这个有可能是你系统之前添加了proposed预发布软件源安装了libicu后来又去掉了proposed源导致的依赖问题, ...
好的 多谢 军哥 麻烦军哥了
页:
[1]