【问题标题】:Not able to install mysql-devel on CentOS-7无法在 CentOS-7 上安装 mysql-devel
【发布时间】:2016-11-15 01:49:51
【问题描述】:

在 CentOS 7 上运行时报以下错误
百胜安装mysql-devel。最终我想先解决这个问题来安装mysqlclient。感谢您对此的任何帮助。谢谢。Python 版本是 3.5。

    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: centos.bhs.mirrors.ovh.net
     * epel: ny-mirrors.evowise.com
     * extras: centos.bhs.mirrors.ovh.net
     * ius: mirror.symnds.com
     * remi-safe: remi.check-update.co.uk
     * updates: centos.bhs.mirrors.ovh.net
     * webtatic: us-east.repo.webtatic.com
    Resolving Dependencies
    --> Running transaction check
    ---> Package mariadb101u-devel.x86_64 1:10.1.14-2.ius.centos7 will be installed
    --> Processing Dependency: mariadb101u-libs(x86-64) = 1:10.1.14-2.ius.centos7 for package: 1:mariadb101u-devel-10.1.14-2.ius.centos7.x86_64
    --> Running transaction check
    ---> Package mariadb101u-libs.x86_64 1:10.1.14-2.ius.centos7 will be installed
    --> Processing Dependency: mariadb101u-common(x86-64) = 1:10.1.14-2.ius.centos7 for package: 1:mariadb101u-libs-10.1.14-2.ius.centos7.x86_64
    --> Running transaction check
    ---> Package mariadb101u-common.x86_64 1:10.1.14-2.ius.centos7 will be installed
    --> Processing Dependency: mariadb101u-config(x86-64) = 1:10.1.14-2.ius.centos7 for package: 1:mariadb101u-common-10.1.14-2.ius.centos7.x86_64
    --> Running transaction check
    ---> Package mariadb101u-config.x86_64 1:10.1.14-2.ius.centos7 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ==============================================================================================================================
     Package                            Arch                   Version                                  Repository           Size
    ==============================================================================================================================
    Installing:
     mariadb101u-devel                  x86_64                 1:10.1.14-2.ius.centos7                  ius                 913 k
    Installing for dependencies:
     mariadb101u-common                 x86_64                 1:10.1.14-2.ius.centos7                  ius                  60 k
     mariadb101u-config                 x86_64                 1:10.1.14-2.ius.centos7                  ius                  23 k
     mariadb101u-libs                   x86_64                 1:10.1.14-2.ius.centos7                  ius                 634 k

    Transaction Summary
    ==============================================================================================================================
    Install  1 Package (+3 Dependent packages)

    Total size: 1.6 M
    Installed size: 7.7 M
    Is this ok [y/d/N]: y
    Downloading packages:
    Running transaction check
    Running transaction test


    Transaction check error:
      file /etc/my.cnf from install of mariadb101u-config-1:10.1.14-2.ius.centos7.x86_64 conflicts with file from package mysql-community-server-5.6.31-2.el7.x86_64
      file /usr/lib64/mysql/libmysqlclient.so.18 from install of mariadb101u-libs-1:10.1.14-2.ius.centos7.x86_64 conflicts with file from package mysql-community-libs-5.6.31-2.el7.x86_64
      file /usr/bin/mysql_config from install of mariadb101u-devel-1:10.1.14-2.ius.centos7.x86_64 conflicts with file from package mysql-community-client-5.6.31-2.el7.x86_64
      file /usr/bin/mysql_config-64 from install of mariadb101u-devel-1:10.1.14-2.ius.centos7.x86_64 conflicts with file from package mysql-community-client-5.6.31-2.el7.x86_64

    Error Summary

-------------

【问题讨论】:

  • mysql-community 是从哪个 yum 存储库安装的?你会想要从同一个 repo 安装所有的 MySql 应用程序。最好的办法可能是删除以前的安装(如果可能)并从一个 repo 重新安装。应该很快,只需先备份所有配置和数据文件。
  • 感谢您的建议。我做了以下,它得到了解决:yum install mysql-community-devel 和 pip3 install mysqlclient

标签: mysql python-3.x mysql-python python-3.5


【解决方案1】:

用“yum install mysql-community-devel”代替“yum install mysql-devel”

【讨论】:

    猜你喜欢
    • 2016-04-13
    • 1970-01-01
    • 2017-09-30
    • 2021-02-04
    • 2017-05-27
    • 2019-04-06
    • 2020-06-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多