开发者社区> 问答> 正文

运行yum install php-mysql 的时候报错

运行yum install php-mysql Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * remi-safe: mirrors.tuna.tsinghua.edu.cn Resolving Dependencies --> Running transaction check ---> Package php-mysql.x86_64 0:5.4.16-48.1.al7 will be installed --> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: php-mysql-5.4.16-48.1.al7.x86_64 --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: php-mysql-5.4.16-48.1.al7.x86_64 --> Running transaction check ---> Package mariadb-libs.x86_64 1:5.5.65-1.1.al7 will be installed Removing mariadb-libs.x86_64 1:5.5.65-1.1.al7 - u due to obsoletes from installed mysql-community-libs-5.7.30-1.el7.x86_64 --> Restarting Dependency Resolution with new changes. --> Running transaction check ---> Package mariadb-libs.x86_64 1:5.5.65-1.1.al7 will be installed --> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-9.1.al7.x86_64 --> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: php-mysql-5.4.16-48.1.al7.x86_64 --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-9.1.al7.x86_64 --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: php-mysql-5.4.16-48.1.al7.x86_64 --> Running transaction check ---> Package mariadb-libs.x86_64 1:5.5.64-1.1.al7 will be installed ---> Package mariadb-libs.x86_64 1:5.5.65-1.1.al7 will be installed Removing mariadb-libs.x86_64 1:5.5.64-1.1.al7 - u due to obsoletes from installed mysql-community-libs-5.7.30-1.el7.x86_64 --> Restarting Dependency Resolution with new changes. --> Running transaction check ---> Package mariadb-libs.x86_64 1:5.5.64-1.1.al7 will be installed --> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-9.1.al7.x86_64 --> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: php-mysql-5.4.16-48.1.al7.x86_64 --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-9.1.al7.x86_64 --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: php-mysql-5.4.16-48.1.al7.x86_64 --> Running transaction check ---> Package mariadb-libs.x86_64 1:5.5.60-1.1.al7 will be installed ---> Package mariadb-libs.x86_64 1:5.5.64-1.1.al7 will be installed Removing mariadb-libs.x86_64 1:5.5.60-1.1.al7 - u due to obsoletes from installed mysql-community-libs-5.7.30-1.el7.x86_64 --> Restarting Dependency Resolution with new changes. --> Running transaction check ---> Package mariadb-libs.x86_64 1:5.5.60-1.1.al7 will be installed --> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-9.1.al7.x86_64 --> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: php-mysql-5.4.16-48.1.al7.x86_64 --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-9.1.al7.x86_64 --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: php-mysql-5.4.16-48.1.al7.x86_64 --> Finished Dependency Resolution Error: Package: 2:postfix-2.10.1-9.1.al7.x86_64 (@updates) Requires: libmysqlclient.so.18(libmysqlclient_18)(64bit) Available: 1:mariadb-libs-5.5.60-1.1.al7.x86_64 (base) libmysqlclient.so.18(libmysqlclient_18)(64bit) Available: 1:mariadb-libs-5.5.64-1.1.al7.x86_64 (updates) libmysqlclient.so.18(libmysqlclient_18)(64bit) Available: 1:mariadb-libs-5.5.65-1.1.al7.i686 (updates) Not found Error: Package: 2:postfix-2.10.1-9.1.al7.x86_64 (@updates) Requires: libmysqlclient.so.18()(64bit) Available: 1:mariadb-libs-5.5.60-1.1.al7.x86_64 (base) libmysqlclient.so.18()(64bit) Available: 1:mariadb-libs-5.5.64-1.1.al7.x86_64 (updates) libmysqlclient.so.18()(64bit) Available: 1:mariadb-libs-5.5.65-1.1.al7.i686 (updates) Not found Error: Package: 2:postfix-2.10.1-9.1.al7.x86_64 (@updates) Requires: libmysqlclient.so.18()(64bit) Installing: 1:mariadb-libs-5.5.60-1.1.al7.x86_64 (base) libmysqlclient.so.18()(64bit) Available: 1:mariadb-libs-5.5.64-1.1.al7.x86_64 (updates) libmysqlclient.so.18()(64bit) Available: 1:mariadb-libs-5.5.65-1.1.al7.i686 (updates) Not found Error: Package: php-mysql-5.4.16-48.1.al7.x86_64 (updates) Requires: libmysqlclient.so.18(libmysqlclient_18)(64bit) Available: 1:mariadb-libs-5.5.60-1.1.al7.x86_64 (base) libmysqlclient.so.18(libmysqlclient_18)(64bit) Available: 1:mariadb-libs-5.5.64-1.1.al7.x86_64 (updates) libmysqlclient.so.18(libmysqlclient_18)(64bit) Available: 1:mariadb-libs-5.5.65-1.1.al7.i686 (updates) Not found Error: Package: 2:postfix-2.10.1-9.1.al7.x86_64 (@updates) Requires: libmysqlclient.so.18()(64bit) Available: 1:mariadb-libs-5.5.60-1.1.al7.x86_64 (base) libmysqlclient.so.18()(64bit) Installing: 1:mariadb-libs-5.5.64-1.1.al7.x86_64 (updates) libmysqlclient.so.18()(64bit) Available: 1:mariadb-libs-5.5.65-1.1.al7.i686 (updates) Not found Error: Package: php-mysql-5.4.16-48.1.al7.x86_64 (updates) Requires: libmysqlclient.so.18()(64bit) Available: 1:mariadb-libs-5.5.60-1.1.al7.x86_64 (base) libmysqlclient.so.18()(64bit) Available: 1:mariadb-libs-5.5.64-1.1.al7.x86_64 (updates) libmysqlclient.so.18()(64bit) Available: 1:mariadb-libs-5.5.65-1.1.al7.i686 (updates) Not found You could try using --skip-broken to work around the problem ** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows: 2:postfix-2.10.1-9.1.al7.x86_64 has missing requires of libmysqlclient.so.18()(64bit) 2:postfix-2.10.1-9.1.al7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)

本人装的mysql不是mariadb 求大佬解惑

展开
收起
游客4o4mcmb6w23j4 2020-06-18 10:26:45 3152 0
1 条回答
写回答
取消 提交回答
  • wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-shared-compat-5.6.14-1.el6.x86_64.rpm

    然后使用rpm -ivh MySQL-shared-compat-5.6.14-1.el6.x86_64.rpm,最后yum install php-mysql,重启apache,成功。

    2020-06-19 13:41:54
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里云栖开发者沙龙PHP技术专场-深入浅出网络编程与swoole内核-吴镇宇 立即下载
PHP安全开发:从白帽角度做安全 立即下载
PHP 2017.北京 全球开发者大会——高可用的PHP 立即下载

相关镜像