【问题标题】:"Nothing to do" when installing mysql devel安装mysql devel时“无事可做”
【发布时间】:2013-12-11 00:41:30
【问题描述】:

我正在使用 CentOS 6.4 并尝试通过“yum”安装 mysql-devel 它无法安装,也没有错误消息。我可以使用“yum search”找到一个包但无法安装它。

/home/centos64/ce-installer:sudo yum install MySQL51-devel.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink
epel-debuginfo/metalink
epel-source/metalink
 * epel: mirrors.ptd.net
 * epel-debuginfo: mirrors.servercentral.net
 * epel-source: mirrors.servercentral.net
 * webtatic: us-east.repo.webtatic.com
base
centosplus
epel-debuginfo
epel-source
extras
updates
webtatic
Setting up Install Process
Nothing to do

谢谢。

【问题讨论】:

  • 这意味着它已经安装了

标签: mysql centos yum


【解决方案1】:

您的包裹名称错误。 Yum 返回“无事可做”,因为没有可用的“MySQL51-devel.x86_64”包。试试这个:

sudo yum install mysql-devel.x86_64

【讨论】:

  • 你好。如果 yum 找不到包名,yum 会发出“没有可用的包 XXXX。无事可做”没有“没有包...”(我使用 CentOS)。对不起,如果我错了。
【解决方案2】:

检查是否已经安装:

rpm -qa | grep -i mysql

【讨论】:

  • 似乎已经安装了包,但没有显示“包已安装”,而是显示“无事可做”的混淆消息
  • @1mdc 是的。这很令人困惑。我在发布答案之前进行了测试。但在我的情况下(CentOS 6)“..已经安装..”正确显示。
猜你喜欢
  • 2016-11-15
  • 1970-01-01
  • 2015-03-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-04-06
相关资源
最近更新 更多