0

我得到了一个已经安装并运行 MySQL 的 RHEL7 系统,我需要在其上安装 mysql-devel。当我运行时:

yum install mysql-devel

我得到:

Transaction check error:
  file /usr/bin/mysql_config-64 from install of
mysql-community-devel-5.7.13-1.el7.x86_64 conflicts with file from
package mysql-community-client-5.7.12-1.el7.x86_64

解决此问题的最佳方法是什么?我不想卸载现有的正在运行的 MySQL 服务器。我不是系统管理员,我是开发人员,这家公司没有管理员。

输出yum --showduplicates list mysql-*

$ sudo yum --showduplicates list mysql-* 
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Installed Packages
mysql-community-client.x86_64                     5.7.12-1.el7           @mysql57-community        
mysql-community-common.x86_64                     5.7.12-1.el7           @mysql57-community        
mysql-community-libs.x86_64                       5.7.12-1.el7           @mysql57-community        
mysql-community-libs-compat.x86_64                5.7.12-1.el7           @mysql57-community        
mysql-community-server.x86_64                     5.7.12-1.el7           @mysql57-community        
Available Packages
MySQL-python.x86_64                               1.2.3-11.el7           rhel-7-server-rpms        
MySQL-zrm.noarch                                  3.0-6.el7              epel                      
mysql-community-client.i686                       5.7.9-1.el7            mysql57-community         
mysql-community-client.x86_64                     5.7.9-1.el7            mysql57-community         
mysql-community-client.i686                       5.7.10-1.el7           mysql57-community         
mysql-community-client.x86_64                     5.7.10-1.el7           mysql57-community         
mysql-community-client.i686                       5.7.11-1.el7           mysql57-community         
mysql-community-client.x86_64                     5.7.11-1.el7           mysql57-community         
mysql-community-client.i686                       5.7.12-1.el7           mysql57-community         
mysql-community-client.x86_64                     5.7.12-1.el7           mysql57-community         
mysql-community-client.i686                       5.7.13-1.el7           mysql57-community         
mysql-community-client.x86_64                     5.7.13-1.el7           mysql57-community         
mysql-community-common.i686                       5.7.9-1.el7            mysql57-community         
mysql-community-common.x86_64                     5.7.9-1.el7            mysql57-community         
mysql-community-common.i686                       5.7.10-1.el7           mysql57-community         
mysql-community-common.x86_64                     5.7.10-1.el7           mysql57-community         
mysql-community-common.i686                       5.7.11-1.el7           mysql57-community         
mysql-community-common.x86_64                     5.7.11-1.el7           mysql57-community         
mysql-community-common.i686                       5.7.12-1.el7           mysql57-community         
mysql-community-common.x86_64                     5.7.12-1.el7           mysql57-community         
mysql-community-common.i686                       5.7.13-1.el7           mysql57-community         
mysql-community-common.x86_64                     5.7.13-1.el7           mysql57-community         
mysql-community-devel.i686                        5.7.9-1.el7            mysql57-community         
mysql-community-devel.x86_64                      5.7.9-1.el7            mysql57-community         
mysql-community-devel.i686                        5.7.10-1.el7           mysql57-community         
mysql-community-devel.x86_64                      5.7.10-1.el7           mysql57-community         
mysql-community-devel.i686                        5.7.11-1.el7           mysql57-community         
mysql-community-devel.x86_64                      5.7.11-1.el7           mysql57-community         
mysql-community-devel.i686                        5.7.12-1.el7           mysql57-community         
mysql-community-devel.x86_64                      5.7.12-1.el7           mysql57-community         
mysql-community-devel.i686                        5.7.13-1.el7           mysql57-community         
mysql-community-devel.x86_64                      5.7.13-1.el7           mysql57-community         
mysql-community-embedded.i686                     5.7.9-1.el7            mysql57-community         
mysql-community-embedded.x86_64                   5.7.9-1.el7            mysql57-community         
mysql-community-embedded.i686                     5.7.10-1.el7           mysql57-community         
mysql-community-embedded.x86_64                   5.7.10-1.el7           mysql57-community         
mysql-community-embedded.i686                     5.7.11-1.el7           mysql57-community         
mysql-community-embedded.x86_64                   5.7.11-1.el7           mysql57-community         
mysql-community-embedded.i686                     5.7.12-1.el7           mysql57-community         
mysql-community-embedded.x86_64                   5.7.12-1.el7           mysql57-community         
mysql-community-embedded.i686                     5.7.13-1.el7           mysql57-community         
mysql-community-embedded.x86_64                   5.7.13-1.el7           mysql57-community         
mysql-community-embedded-compat.i686              5.7.9-1.el7            mysql57-community         
mysql-community-embedded-compat.x86_64            5.7.9-1.el7            mysql57-community         
mysql-community-embedded-compat.i686              5.7.10-1.el7           mysql57-community         
mysql-community-embedded-compat.x86_64            5.7.10-1.el7           mysql57-community         
mysql-community-embedded-compat.i686              5.7.11-1.el7           mysql57-community         
mysql-community-embedded-compat.x86_64            5.7.11-1.el7           mysql57-community         
mysql-community-embedded-compat.i686              5.7.12-1.el7           mysql57-community         
mysql-community-embedded-compat.x86_64            5.7.12-1.el7           mysql57-community         
mysql-community-embedded-compat.i686              5.7.13-1.el7           mysql57-community         
mysql-community-embedded-compat.x86_64            5.7.13-1.el7           mysql57-community         
mysql-community-embedded-devel.i686               5.7.9-1.el7            mysql57-community         
mysql-community-embedded-devel.x86_64             5.7.9-1.el7            mysql57-community         
mysql-community-embedded-devel.i686               5.7.10-1.el7           mysql57-community         
mysql-community-embedded-devel.x86_64             5.7.10-1.el7           mysql57-community         
mysql-community-embedded-devel.i686               5.7.11-1.el7           mysql57-community         
mysql-community-embedded-devel.x86_64             5.7.11-1.el7           mysql57-community         
mysql-community-embedded-devel.i686               5.7.12-1.el7           mysql57-community         
mysql-community-embedded-devel.x86_64             5.7.12-1.el7           mysql57-community         
mysql-community-embedded-devel.i686               5.7.13-1.el7           mysql57-community         
mysql-community-embedded-devel.x86_64             5.7.13-1.el7           mysql57-community         
mysql-community-libs.i686                         5.7.9-1.el7            mysql57-community         
mysql-community-libs.x86_64                       5.7.9-1.el7            mysql57-community         
mysql-community-libs.i686                         5.7.10-1.el7           mysql57-community         
mysql-community-libs.x86_64                       5.7.10-1.el7           mysql57-community         
mysql-community-libs.i686                         5.7.11-1.el7           mysql57-community         
mysql-community-libs.x86_64                       5.7.11-1.el7           mysql57-community         
mysql-community-libs.i686                         5.7.12-1.el7           mysql57-community         
mysql-community-libs.x86_64                       5.7.12-1.el7           mysql57-community         
mysql-community-libs.i686                         5.7.13-1.el7           mysql57-community         
mysql-community-libs.x86_64                       5.7.13-1.el7           mysql57-community         
mysql-community-libs-compat.i686                  5.7.9-1.el7            mysql57-community         
mysql-community-libs-compat.x86_64                5.7.9-1.el7            mysql57-community         
mysql-community-libs-compat.i686                  5.7.10-1.el7           mysql57-community         
mysql-community-libs-compat.x86_64                5.7.10-1.el7           mysql57-community         
mysql-community-libs-compat.i686                  5.7.11-1.el7           mysql57-community         
mysql-community-libs-compat.x86_64                5.7.11-1.el7           mysql57-community         
mysql-community-libs-compat.i686                  5.7.12-1.el7           mysql57-community         
mysql-community-libs-compat.x86_64                5.7.12-1.el7           mysql57-community         
mysql-community-libs-compat.i686                  5.7.13-1.el7           mysql57-community         
mysql-community-libs-compat.x86_64                5.7.13-1.el7           mysql57-community         
mysql-community-release.noarch                    el7-5                  mysql-connectors-community
mysql-community-release.noarch                    el7-5                  mysql-tools-community     
mysql-community-release.noarch                    el7-7                  mysql57-community         
mysql-community-server.x86_64                     5.7.9-1.el7            mysql57-community         
mysql-community-server.x86_64                     5.7.10-1.el7           mysql57-community         
mysql-community-server.x86_64                     5.7.11-1.el7           mysql57-community         
mysql-community-server.x86_64                     5.7.12-1.el7           mysql57-community         
mysql-community-server.x86_64                     5.7.13-1.el7           mysql57-community         
mysql-community-test.x86_64                       5.7.9-1.el7            mysql57-community         
mysql-community-test.x86_64                       5.7.10-1.el7           mysql57-community         
mysql-community-test.x86_64                       5.7.11-1.el7           mysql57-community         
mysql-community-test.x86_64                       5.7.12-1.el7           mysql57-community         
mysql-community-test.x86_64                       5.7.13-1.el7           mysql57-community         
mysql-connector-java.noarch                       1:5.1.25-3.el7         rhel-7-server-rpms        
mysql-connector-odbc.x86_64                       5.2.5-6.el7            rhel-7-server-rpms        
mysql-connector-odbc.x86_64                       5.2.6-1.el7            mysql-connectors-community
mysql-connector-odbc.x86_64                       5.2.7-1.el7            mysql-connectors-community
mysql-connector-odbc.x86_64                       5.3.2-1.el7            mysql-connectors-community
mysql-connector-odbc.x86_64                       5.3.4-1.el7            mysql-connectors-community
mysql-connector-odbc.x86_64                       5.3.6-1.el7            mysql-connectors-community
mysql-connector-odbc-debuginfo.x86_64             5.3.6-1.el7            mysql-connectors-community
mysql-connector-odbc-setup.x86_64                 5.3.6-1.el7            mysql-connectors-community
mysql-connector-python.noarch                     1.1.4-1.el7            mysql-connectors-community
mysql-connector-python.noarch                     1.1.5-1.el7            mysql-connectors-community
mysql-connector-python.noarch                     1.1.6-1.el7            epel                      
mysql-connector-python.noarch                     1.1.6-1.el7            mysql-connectors-community
mysql-connector-python.noarch                     1.1.7-1.el7            mysql-connectors-community
mysql-connector-python.noarch                     1.2.2-1.el7            mysql-connectors-community
mysql-connector-python.noarch                     1.2.3-1.el7            mysql-connectors-community
mysql-connector-python.noarch                     2.0.1-1.el7            mysql-connectors-community
mysql-connector-python.noarch                     2.0.2-1.el7            mysql-connectors-community
mysql-connector-python.noarch                     2.0.3-1.el7            mysql-connectors-community
mysql-connector-python.noarch                     2.0.4-1.el7            mysql-connectors-community
mysql-connector-python.x86_64                     2.1.3-1.el7            mysql-connectors-community
mysql-connector-python-cext.x86_64                2.1.3-1.el7            mysql-connectors-community
mysql-connector-python-debuginfo.x86_64           2.1.3-1.el7            mysql-connectors-community
mysql-mmm.noarch                                  2.2.1-14.el7           epel                      
mysql-mmm-agent.noarch                            2.2.1-14.el7           epel                      
mysql-mmm-monitor.noarch                          2.2.1-14.el7           epel                      
mysql-mmm-tools.noarch                            2.2.1-14.el7           epel                      
mysql-proxy.x86_64                                0.8.5-2.el7            epel                      
mysql-proxy-devel.x86_64                          0.8.5-2.el7            epel                      
mysql-router.x86_64                               2.0.2-1.el7            mysql-tools-community     
mysql-router.x86_64                               2.0.3-1.el7            mysql-tools-community     
mysql-router-debuginfo.x86_64                     2.0.2-1.el7            mysql-tools-community     
mysql-router-debuginfo.x86_64                     2.0.3-1.el7            mysql-tools-community     
mysql-utilities.noarch                            1.3.6-1.el7            epel                      
mysql-utilities.noarch                            1.3.6-1.el7            mysql-tools-community     
mysql-utilities.noarch                            1.4.3-1.el7            mysql-tools-community     
mysql-utilities.noarch                            1.4.4-1.el7            mysql-tools-community     
mysql-utilities.noarch                            1.5.2-1.el7            mysql-tools-community     
mysql-utilities.noarch                            1.5.3-1.el7            mysql-tools-community     
mysql-utilities.noarch                            1.5.4-1.el7            mysql-tools-community     
mysql-utilities.noarch                            1.5.5-1.el7            mysql-tools-community     
mysql-utilities.noarch                            1.5.6-1.el7            mysql-tools-community     
mysql-utilities-extra.noarch                      1.4.3-1.el7            mysql-tools-community     
mysql-utilities-extra.noarch                      1.4.4-1.el7            mysql-tools-community     
mysql-utilities-extra.noarch                      1.5.2-1.el7            mysql-tools-community     
mysql-utilities-extra.noarch                      1.5.3-1.el7            mysql-tools-community     
mysql-utilities-extra.noarch                      1.5.4-1.el7            mysql-tools-community     
mysql-utilities-extra.noarch                      1.5.5-1.el7            mysql-tools-community     
mysql-utilities-extra.noarch                      1.5.6-1.el7            mysql-tools-community     
mysql-workbench-community.x86_64                  6.2.3-1.el7            mysql-tools-community     
mysql-workbench-community.x86_64                  6.2.4-1.el7            mysql-tools-community     
mysql-workbench-community.x86_64                  6.2.5-1.el7            mysql-tools-community     
mysql-workbench-community.x86_64                  6.3.3-1.el7            mysql-tools-community     
mysql-workbench-community.x86_64                  6.3.4-1.el7            mysql-tools-community     
mysql-workbench-community.x86_64                  6.3.5-1.el7            mysql-tools-community     
mysql-workbench-community.x86_64                  6.3.6-1.el7            mysql-tools-community     
mysql-workbench-community.x86_64                  6.3.6-2.el7            mysql-tools-community     
mysql-workbench-community-debuginfo.x86_64        6.3.3-1.el7            mysql-tools-community     
mysql-workbench-community-debuginfo.x86_64        6.3.4-1.el7            mysql-tools-community     
mysql-workbench-community-debuginfo.x86_64        6.3.5-1.el7            mysql-tools-community     
mysql-workbench-community-debuginfo.x86_64        6.3.6-1.el7            mysql-tools-community     
mysql-workbench-community-debuginfo.x86_64        6.3.6-2.el7            mysql-tools-community
4

1 回答 1

2

看起来你已经安装了一步过时的 mysql。

尝试yum install mysql-community-devel-5.7.12-1.el7

于 2016-06-05T23:11:08.543 回答