VPS侦探论坛

 找回密码
 注册
查看: 4055|回复: 4

centos7.2 lnmp1.4 php安装失败

[复制链接]
发表于 2017-9-18 09:38:44 | 显示全部楼层 |阅读模式

只选择安装了 nginx 和 php nginx 安装成功,php安装失败,第一次遇到这种情况,烦请帮忙看一下日志

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-9-18 12:00:39 | 显示全部楼层


Error:  Multilib version problems found. This often means that the root
       cause is something else and multilib version checking is just
       pointing out that there is a problem. Eg.:
      
         1. You have an upgrade for libcurl which is missing some
            dependency that another package requires. Yum is trying to
            solve this by installing an older version of libcurl of the
            different architecture. If you exclude the bad architecture
            yum will tell you what the root cause is (which package
            requires what). You can try redoing the upgrade with
            --exclude libcurl.otherarch ... this should give you an error
            message showing the root cause of the problem.
      
         2. You have multiple architectures of libcurl installed, but
            yum can only see an upgrade for one of those architectures.
            If you don't want/need both architectures anymore then you
            can remove the one with the missing update and everything
            will work.
      
         3. You have duplicate versions of libcurl installed already.
            You can use "yum check" to get yum show these errors.
      
       ...you can also use --setopt=protected_multilib=false to remove
       this checking, however this is almost never the correct thing to
       do as something else is very likely to go wrong (often causing
       much more problems).
      
       Protected multilib versions: libcurl-7.29.0-25.el7.i686 != libcurl-7.29.0-25.el7.centos.x86_64

可能你yum的设置上开启了multilib  可以/etc/yum.conf中尝试关闭multilib,或 yum install libcurl --setopt=protected_multilib=false 试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-9-18 15:01:43 | 显示全部楼层


好像安装没问题
原帖由 licess 于 2017-9-18 12:00 发表

可能你yum的设置上开启了multilib  可以/etc/yum.conf中尝试关闭multilib,或 yum install libcurl --setopt=protected_multilib=false 试试
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-9-18 19:37:35 | 显示全部楼层

回复 3# 的帖子




yum install libcurl-7.29.0-25.el7.i686 --setopt=protected_multilib=false 再看一下
如果正常的话重新再安装
如果还是报错,可以尝试修改安装包里的 include/php.sh 将 if [[ "${DISTRO}" = "CentOS" && "${Is_ARM}" = "y" ]];then 替换 为 if [[ "${DISTRO}" = "CentOS" || "${Is_ARM}" = "y" ]];then 后再安装。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-9-20 10:40:43 | 显示全部楼层

原帖由 licess 于 2017-9-18 19:37 发表
yum install libcurl-7.29.0-25.el7.i686 --setopt=protected_multilib=false 再看一下
如果正常的话重新再安装
如果还是报错,可以尝试修改安装包里的 include/php.sh 将 if [[ "${DISTRO}" = "CentOS" && "${Is_ARM} ...


嗯 可以了 确实是 libcurl 版本问题,thx

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-18 08:29 , Processed in 0.027370 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表