Mysql
安裝remi php-mysql後安裝mysql客戶端出錯
在使用 php-fpm 安裝 nginx 後,感謝 remi 儲存庫,當我簡單地安裝 mysql 客戶端時出現錯誤:
yum install mysql
給我以下結果(見下文)。
Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * base: centos.quelquesmots.fr * epel: ftp-stud.hs-esslingen.de * extras: centos.crazyfrogs.org * updates: centos.mirror.crcrepairs.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package mysql.x86_64 0:5.1.73-3.el6_5 will be installed --> Processing Dependency: mysql-libs = 5.1.73-3.el6_5 for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient_r.so.16(libmysqlclient_16)(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient_r.so.16()(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient.so.16()(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Running transaction check ---> Package mysql.x86_64 0:5.1.73-3.el6_5 will be installed --> Processing Dependency: libmysqlclient_r.so.16(libmysqlclient_16)(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient_r.so.16()(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient.so.16()(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 ---> Package mysql-libs.i686 0:5.1.73-3.el6_5 will be installed --> Processing Dependency: libssl.so.10(libssl.so.10) for package: mysql-libs-5.1.73-3.el6_5.i686 --> Processing Dependency: libssl.so.10 for package: mysql-libs-5.1.73-3.el6_5.i686 --> Processing Dependency: libcrypto.so.10(libcrypto.so.10) for package: mysql-libs-5.1.73-3.el6_5.i686 --> Processing Dependency: libcrypto.so.10 for package: mysql-libs-5.1.73-3.el6_5.i686 --> Running transaction check ---> Package mysql.x86_64 0:5.1.73-3.el6_5 will be installed --> Processing Dependency: libmysqlclient_r.so.16(libmysqlclient_16)(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient_r.so.16()(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient.so.16()(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 ---> Package openssl.x86_64 0:1.0.1e-16.el6_5.7 will be updated ---> Package openssl.i686 0:1.0.1e-16.el6_5.14 will be installed --> Processing Dependency: libkrb5.so.3(krb5_3_MIT) for package: openssl-1.0.1e-16.el6_5.14.i686 --> Processing Dependency: libkrb5.so.3 for package: openssl-1.0.1e-16.el6_5.14.i686 --> Processing Dependency: libk5crypto.so.3(k5crypto_3_MIT) for package: openssl-1.0.1e-16.el6_5.14.i686 --> Processing Dependency: libk5crypto.so.3 for package: openssl-1.0.1e-16.el6_5.14.i686 --> Processing Dependency: libgssapi_krb5.so.2 for package: openssl-1.0.1e-16.el6_5.14.i686 ---> Package openssl.x86_64 0:1.0.1e-16.el6_5.14 will be an update --> Running transaction check ---> Package krb5-libs.i686 0:1.10.3-15.el6_5.1 will be installed --> Processing Dependency: libkeyutils.so.1(KEYUTILS_0.3) for package: krb5-libs-1.10.3-15.el6_5.1.i686 --> Processing Dependency: libkeyutils.so.1 for package: krb5-libs-1.10.3-15.el6_5.1.i686 ---> Package mysql.x86_64 0:5.1.73-3.el6_5 will be installed --> Processing Dependency: libmysqlclient_r.so.16(libmysqlclient_16)(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient_r.so.16()(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient.so.16()(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Running transaction check ---> Package keyutils-libs.i686 0:1.4-4.el6 will be installed ---> Package mysql.x86_64 0:5.1.73-3.el6_5 will be installed --> Processing Dependency: libmysqlclient_r.so.16(libmysqlclient_16)(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient_r.so.16()(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Processing Dependency: libmysqlclient.so.16()(64bit) for package: mysql-5.1.73-3.el6_5.x86_64 --> Finished Dependency Resolution Error: Package: mysql-5.1.73-3.el6_5.x86_64 (updates) Requires: libmysqlclient.so.16()(64bit) Available: mysql-libs-5.1.71-1.el6.x86_64 (base) libmysqlclient.so.16()(64bit) Available: mysql-libs-5.1.73-3.el6_5.x86_64 (updates) libmysqlclient.so.16()(64bit) Installed: mysql-libs-5.5.38-1.el6.remi.x86_64 (@remi) Not found Error: Package: mysql-5.1.73-3.el6_5.x86_64 (updates) Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit) Available: mysql-libs-5.1.71-1.el6.x86_64 (base) libmysqlclient.so.16(libmysqlclient_16)(64bit) Available: mysql-libs-5.1.73-3.el6_5.x86_64 (updates) libmysqlclient.so.16(libmysqlclient_16)(64bit) Installed: mysql-libs-5.5.38-1.el6.remi.x86_64 (@remi) Not found Error: Package: mysql-5.1.73-3.el6_5.x86_64 (updates) Requires: libmysqlclient_r.so.16(libmysqlclient_16)(64bit) Available: mysql-libs-5.1.71-1.el6.x86_64 (base) libmysqlclient_r.so.16(libmysqlclient_16)(64bit) Available: mysql-libs-5.1.73-3.el6_5.x86_64 (updates) libmysqlclient_r.so.16(libmysqlclient_16)(64bit) Installed: mysql-libs-5.5.38-1.el6.remi.x86_64 (@remi) Not found Error: Package: mysql-5.1.73-3.el6_5.x86_64 (updates) Requires: libmysqlclient_r.so.16()(64bit) Available: mysql-libs-5.1.71-1.el6.x86_64 (base) libmysqlclient_r.so.16()(64bit) Available: mysql-libs-5.1.73-3.el6_5.x86_64 (updates) libmysqlclient_r.so.16()(64bit) Installed: mysql-libs-5.5.38-1.el6.remi.x86_64 (@remi) Not found You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
所以..我解決這個問題的最佳方法是什麼?
問候,
麥克風
錯誤:包:mysql-5.1.73-3.el6_5.x86_64(更新)
要求:libmysqlclient.so.16()(64位)
可用:mysql-libs-5.1.71-1.el6.x86_64(基礎)
libmysqlclient。 so.16()(64bit)
可用:mysql-libs-5.1.73-3.el6_5.x86_64 (更新)
libmysqlclient.so.16()(64bit)
已安裝:mysql-libs-5.5.38-1.el6。 remi.x86_64 (@remi)
所以我想你只需要:
yum --enablerepo=remi,remi-test install mysql mysql-server
嘗試使用 remi repo 安裝 MySQL。CentOS 6 想要安裝 MySQL 5.1 vs 5.5 libs 已經安裝。所以你需要 MySQL 5.5