因此,我试图从MariaDB 5.5升级到10.0。(本质上是MySQL叉)安装说明告诉
yum remove mariadb-server mariadb-common mariadb-compat然后重新安装新版本..。但是yum remove也删除了
php-mysql
php-pear-MDB2-Driver-mysql现在,当我重新安装php-msyql时,会得到一个错误:
> yum install php-mysql
Loaded plugins: fastestmirror, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.vcu.edu
* centosplus: mirror.vcu.edu
* epel: mirror.symnds.com
* extras: mirror.cs.vt.edu
* ius: mirror.symnds.com
* rpmforge-extras: mirror.us.leaseweb.net
* updates: mirrors.advancedhosters.com
* webtatic: us-east.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.i386 0:5.3.29-3.w5 will be installed
--> Processing Dependency: php-pdo = 5.3.29-3.w5 for package: php-mysql-5.3.29-3.w5.i386
--> Running transaction check
---> Package php-pdo.i386 0:5.3.29-3.w5 will be installed
--> Processing Dependency: php-common = 5.3.29-3.w5 for package: php-pdo-5.3.29-3.w5.i386
--> Running transaction check
---> Package php-common.i386 0:5.3.29-3.w5 will be installed
--> Processing Dependency: libcurl.so.3 for package: php-common-5.3.29-3.w5.i386
--> Finished Dependency Resolution
Error: Package: php-common-5.3.29-3.w5.i386 (webtatic)
Requires: libcurl.so.3
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest为什么它甚至要求安装php-公共?我已经安装好了:
>yum list installed|grep php
php-pear-MDB2.noarch 2.5.0-0.9.b5.el6 @epel
php-php-gettext.noarch 1.0.11-3.el6 @epel
php53u.i686 5.3.28-4.ius.centos6 @ius
php53u-cli.i686 5.3.28-4.ius.centos6 @ius
php53u-common.i686 5.3.28-4.ius.centos6 @ius
php53u-devel.i686 5.3.28-4.ius.centos6 @ius
php53u-gd.i686 5.3.28-4.ius.centos6 @ius
php53u-mbstring.i686 5.3.28-4.ius.centos6 @ius
php53u-mcrypt.i686 5.3.28-4.ius.centos6 @ius
php53u-pdo.i686 5.3.28-4.ius.centos6 @ius
php53u-pear.noarch 1:1.9.4-3.ius.centos6 @ius
php53u-zts.i686 5.3.28-4.ius.centos6 @ius 还有..。我已经安装好了!
>yum list installed|grep libcurl
libcurl.i686 7.19.7-40.el6_6.3 @updates
libcurl-devel.i686 7.19.7-40.el6_6.3 @updates Google说这个版本的libcurl包含libcurl.so.4而不是3。我查看了我的系统,有一个从3到4的符号链接:
>ll /usr/lib/libcurl.so*
lrwxrwxrwx 1 root root 16 Jan 1 02:00 /usr/lib/libcurl.so -> libcurl.so.4.1.1
lrwxrwxrwx 1 root root 12 Feb 16 2014 /usr/lib/libcurl.so.3 -> libcurl.so.4
lrwxrwxrwx 1 root root 16 Jan 1 01:59 /usr/lib/libcurl.so.4 -> libcurl.so.4.1.1
-rwxr-xr-x 1 root root 346084 Dec 7 23:50 /usr/lib/libcurl.so.4.1.1我注意到libcurl.so.3正在指向一个不存在的文件,并将其更新为4.1.1.但还是没有运气。
我该怎么办??
它看起来不像yum有一个skip dependancy check,但我将不得不使用RPM -nodeps来做到这一点。但人们说坏事会发生。
发布于 2015-01-03 06:16:54
好吧,我用rpm --nodeps解决了这个问题.
在rpmfind.net上搜索所有rpm之后,首先下载它们。
wget ftp://rpmfind.net/linux/centos/6.6/os/i386/Packages/php-mysql-5.3.3-38.el6.i686.rpm
wget ftp://rpmfind.net/linux/centos/6.6/updates/i386/Packages/php-common-5.3.3-40.el6_6.i686.rpm
wget ftp://rpmfind.net/linux/centos/6.6/updates/i386/Packages/php-pdo-5.3.3-40.el6_6.i686.rpm然后我和rpm -iv一起跑了他们每一个都是为了看看发生了什么,当然,他们都在为失踪的停步狂吠.所以我用rpm -vi --nodeps运行了它们,现在一切都正常了。
https://serverfault.com/questions/656021
复制相似问题