jiangzhijie 发表于 2019-8-2 14:08:09

centos7 安装lnmp,其中php安装失败

centos7 安装lnmp,其中php安装失败

jiangzhijie 发表于 2019-8-2 14:09:14

这个是安装日志,lnmp-install.log

jiangzhijie 发表于 2019-8-2 15:16:43

这个是安装日志

licess 发表于 2019-8-2 17:16:08

Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package openssl-devel.x86_64 1:1.0.2k-12.el7 will be installed
--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2k-12.el7.x86_64
--> Running transaction check
---> Package krb5-devel.x86_64 0:1.15.1-19.el7 will be installed
--> Processing Dependency: libkadm5(x86-64) = 1.15.1-19.el7 for package: krb5-devel-1.15.1-19.el7.x86_64
--> Processing Dependency: krb5-libs(x86-64) = 1.15.1-19.el7 for package: krb5-devel-1.15.1-19.el7.x86_64
--> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-19.el7.x86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-19.el7.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-19.el7.x86_64
--> Running transaction check
---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
---> Package krb5-libs.x86_64 0:1.15.1-8.el7 will be updated
---> Package krb5-libs.x86_64 0:1.15.1-19.el7 will be an update
---> Package libkadm5.x86_64 0:1.15.1-19.el7 will be installed
---> Package libselinux-devel.x86_64 0:2.5-12.el7 will be installed
--> Processing Dependency: libselinux(x86-64) = 2.5-12.el7 for package: libselinux-devel-2.5-12.el7.x86_64
--> Processing Dependency: libsepol-devel(x86-64) >= 2.5-6 for package: libselinux-devel-2.5-12.el7.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-12.el7.x86_64
---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
--> Running transaction check
---> Package libselinux-devel.x86_64 0:2.5-12.el7 will be installed
--> Processing Dependency: libselinux(x86-64) = 2.5-12.el7 for package: libselinux-devel-2.5-12.el7.x86_64
---> Package libsepol-devel.x86_64 0:2.5-8.1.el7 will be installed
--> Processing Dependency: libsepol(x86-64) = 2.5-8.1.el7 for package: libsepol-devel-2.5-8.1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: libselinux-devel-2.5-12.el7.x86_64 (base)
         Requires: libselinux(x86-64) = 2.5-12.el7
         Installed: libselinux-2.5-14.1.el7.x86_64 (@base)
               libselinux(x86-64) = 2.5-14.1.el7
         Available: libselinux-2.5-12.el7.x86_64 (base)
               libselinux(x86-64) = 2.5-12.el7
Error: Package: libsepol-devel-2.5-8.1.el7.x86_64 (base)
         Requires: libsepol(x86-64) = 2.5-8.1.el7
         Installed: libsepol-2.5-10.el7.x86_64 (@base)
               libsepol(x86-64) = 2.5-10.el7
         Available: libsepol-2.5-8.1.el7.x86_64 (base)
               libsepol(x86-64) = 2.5-8.1.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
你系统依赖关系有问题

可以尝试 yum install yum-utils
然后 package-cleanup --cleandupes
yum clean all
然后 yum install openssl-devel 看能否正常安装

jiangzhijie 发表于 2019-11-15 14:44:57

之前的换做yum安装的,今天又有一批新服务器,发现还是安装报了php错误,用你们回复的方法试了下 还是报销,
还是报错如下
Checking ...
Nginx: OK
MySQL: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.


我的系统是center os 7.4的是和我的版本有关系还是系统默认的yum有关系啊

licess 发表于 2019-11-15 19:05:38

jiangzhijie 发表于 2019-11-15 14:44
之前的换做yum安装的,今天又有一批新服务器,发现还是安装报了php错误,用你们回复的方法试了下 还是报销 ...

没日志没法确定原因
页: [1]
查看完整版本: centos7 安装lnmp,其中php安装失败