Multilib version problems found. This often means that the root...

腾讯云安装nginx,然后到安装pcre依赖的时候报了这个错,谷歌了一下,报这个错一般意味着:

1、 You have an upgrade for pcre which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of pcre 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 pcre.otherarch … this should give you an error
message showing the root cause of the problem.

2、 You have multiple architectures of pcre 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 pcre installed already.
You can use “yum check” to get yum show these errors.

。。。。。。

解决:

我的情况应该是pcre包重复了。然后,我用

#rpm -qa | grep pcre

查看pcre是否重复,安装,果然有,然后我用

#yum remove 其中一个的pcre的包名       //卸载

再重新安装:

# yum install -y pcre pcre-devel

搞定!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
当你遇到 "Failed to start mysqld.service: Unit not found." 这样的错误时,通常表示系统找不到名为 `mysqld.service` 的服务单元。这可能是由于以下原因: 1. **服务未安装**:确认MySQL是否已经正确安装并配置过。如果是新安装的MySQL,确保安装过程完整,并检查 `/etc/systemd/system/mysqld.service` 文件是否存在。 2. **启动文件路径错误**:确认`mysqld.service` 的位置是否正确,如果是在其他目录下,需要更新 systemd 的默认搜索路径。 3. **服务未启用**:运行 `systemctl status mysql` 或 `systemctl status mysqld` 检查服务状态,如果不是active(running),尝试手动启用它:`sudo systemctl enable mysqld`. 4. **权限问题**:执行命令时可能需要 root 权限,可以试着加上 `sudo`:`sudo systemctl start mysqld`. 5. **服务文件损坏**:检查 `mysqld.service` 文件是否有语法错误,可以备份原文件后尝试修复或替换。 6. **依赖问题**:确认MySQL是否有必要的依赖项(如network.target、multilib.target等),如果没有,安装它们。 7. **更新系统或MySQL后遗症**:有时候系统升级或MySQL版本变更可能导致服务文件配置冲突,检查是否有相关更新日志或解决方案。 解决这个问题后,你可以通过 `sudo systemctl start mysqld` 启动服务,然后查看其运行状态确认是否正常。如果还是有问题,记得记录每个步骤以便排查。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值