mysql升级后php无法使用
mysql用jason的源后,虽然可以直接yum到5.5了,但是php-mysql无法使用了
总是无法update到对应的依赖包。
错误如下:
Resolving Dependencies --> Running transaction check ---> Package php-mysql.i386 0:5.2.17-jason.2 set to be updated --> Processing Dependency: libmysqlclient.so.16 for package: php-mysql --> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: php-mysql --> Running transaction check ---> Package mysql.i386 0:5.1.58-jason.1 set to be updated --> Processing Conflict: mysql55 conflicts mysql < 5.5.28 --> Finished Dependency Resolution mysql55-5.5.28-1.w5.i386 from installed has depsolving problems --> mysql55 conflicts with mysql Error: mysql55 conflicts with mysql You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest
谷歌了好久,得到的方案是,把php和mysql相关的都删除了,然后切换一个源,重新安装php和mysql
删除php内容
rpm-qa|grepmysql
rpm-qa|grepphp
把看到的内容都删除了
yumremovephp-*
yumremovemysql
yumerasemysql-libs
切换源
rpm-Uvhhttp://rpms.famillecollet.com/enterprise/remi-release-5.rpm
安装mysql
yum--enablerepo=remi,remi-testinstallmysqlmysql-server
yum--enablerepo=remi,remi-testinstallphp
yum--enablerepo=remi,remi-testinstallphp-mysql
终于再也没看到那个可恶的包依赖了。
相关推荐
yifangs 2020-10-13
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
Noneyes 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28
wwwsurfphpseocom 2020-10-28
diskingchuan 2020-10-23
savorTheFlavor 2020-10-23