我安裝了php 5.3和mysql server 5.5。我需要安裝php-mysql,但遇到以下衝突。我該如何解決這個問題?php-mysql版本與Mysql服務器衝突
yum install php-mysql Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.versaweb.com * elrepo: elrepo.org * extras: yum.phx.singlehop.com * updates: yum.phx.singlehop.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-mysql.x86_64 0:5.3.3-3.el6_2.8 will be installed --> Processing Dependency: php-common = 5.3.3-3.el6_2.8 for package: php-mysql-5.3.3-3.el6_2.8.x86_64 --> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: php-mysql-5.3.3-3.el6_2.8.x86_64 --> Processing Dependency: libmysqlclient.so.16()(64bit) for package: php-mysql-5.3.3-3.el6_2.8.x86_64 --> Running transaction check ---> Package mysql-libs.x86_64 0:5.1.61-1.el6_2.1 will be installed ---> Package php-common.x86_64 0:5.3.3-3.el6_2.5 will be updated --> Processing Dependency: php-common = 5.3.3-3.el6_2.5 for package: php-5.3.3-3.el6_2.5.x86_64 --> Processing Dependency: php-common = 5.3.3-3.el6_2.5 for package: php-cli-5.3.3-3.el6_2.5.x86_64 --> Processing Dependency: php-common = 5.3.3-3.el6_2.5 for package: php-pdo-5.3.3-3.el6_2.5.x86_64 ---> Package php-common.x86_64 0:5.3.3-3.el6_2.8 will be an update --> Running transaction check ---> Package php.x86_64 0:5.3.3-3.el6_2.5 will be updated ---> Package php.x86_64 0:5.3.3-3.el6_2.8 will be an update ---> Package php-cli.x86_64 0:5.3.3-3.el6_2.5 will be updated ---> Package php-cli.x86_64 0:5.3.3-3.el6_2.8 will be an update ---> Package php-pdo.x86_64 0:5.3.3-3.el6_2.5 will be updated ---> Package php-pdo.x86_64 0:5.3.3-3.el6_2.8 will be an update --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: php-mysql x86_64 5.3.3-3.el6_2.8 updates 79 k Installing for dependencies: mysql-libs x86_64 5.1.61-1.el6_2.1 updates 1.2 M Updating for dependencies: php x86_64 5.3.3-3.el6_2.8 updates 1.1 M php-cli x86_64 5.3.3-3.el6_2.8 updates 2.2 M php-common x86_64 5.3.3-3.el6_2.8 updates 522 k php-pdo x86_64 5.3.3-3.el6_2.8 updates 73 k Transaction Summary =============================================================================================================================================================================================== Install 2 Package(s) Upgrade 4 Package(s) Total size: 5.2 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Check Error: file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.61-1.el6_2.1.x86_64 conflicts with file from package MySQL-server-5.5.20-1.linux2.6.x86_64 file /usr/share/mysql/charsets/README from install of mysql-libs-5.1.61-1.el6_2.1.x86_64 conflicts with file from package MySQL-server-5.5.20-1.linux2.6.x86_64
您已經安裝了MySQL在終端使用這四個命令解決了嗎? – Filype
@Filype:是的,我不能重新安裝MySQL – user121196