duanboxue3422 2014-02-12 19:07
浏览 90
已采纳

删除PHP 5.4 - libcurl.so.3()(64位)问题后安装PHP 5.3

I upgraded to PHP 5.4 and this caused issues with multiple of my scripts that use the deprecated mysql_connect function. I will need to redo these later in order to use it, but for now I would like to go back to PHP 5.3

I removed PHP 5.4 completely, added the webtactic repo, told the atomic repo to ignore php, php-*

I then do yum install php php-cli php-gd php-mysql php-mbstring and this happens:

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
epel/metalink
 * atomic: www4.atomicorp.com
 * base: mirror.beyondhosting.net
 * epel: archive.linux.duke.edu
 * extras: centos.mbni.med.umich.edu
 * updates: centos.mbni.med.umich.edu
 * webtatic: us-east.repo.webtatic.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.3.28-2.w5 will be installed
--> Processing Dependency: php-common = 5.3.28-2.w5 for package: php-5.3.28-2.w5.x86_64
--> Processing Dependency: libssl.so.6()(64bit) for package: php-5.3.28-2.w5.x86_64
--> Processing Dependency: libcrypto.so.6()(64bit) for package: php-5.3.28-2.w5.x86_64
---> Package php-cli.x86_64 0:5.3.28-2.w5 will be installed
--> Processing Dependency: libtermcap.so.2()(64bit) for package: php-cli-5.3.28-2.w5.x86_64
--> Processing Dependency: libreadline.so.5()(64bit) for package: php-cli-5.3.28-2.w5.x86_64
---> Package php-gd.x86_64 0:5.3.28-2.w5 will be installed
---> Package php-mbstring.x86_64 0:5.3.28-2.w5 will be installed
---> Package php-mysql.x86_64 0:5.3.28-2.w5 will be installed
--> Processing Dependency: php-pdo = 5.3.28-2.w5 for package: php-mysql-5.3.28-2.w5.x86_64
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) for package: php-mysql-5.3.28-2.w5.x86_64
--> Processing Dependency: libmysqlclient.so.15()(64bit) for package: php-mysql-5.3.28-2.w5.x86_64
--> Running transaction check
---> Package compat-libtermcap.x86_64 0:2.0.8-49.el6 will be installed
---> Package compat-readline5.x86_64 0:5.2-17.1.el6 will be installed
---> Package libmysqlclient15.x86_64 0:5.0.95-5.w5 will be installed
---> Package openssl098e.x86_64 0:0.9.8e-17.el6.centos.2 will be installed
---> Package php-common.x86_64 0:5.3.28-2.w5 will be installed
--> Processing Dependency: libcurl.so.3()(64bit) for package: php-common-5.3.28-2.w5.x86_64
---> Package php-pdo.x86_64 0:5.3.28-2.w5 will be installed
--> Finished Dependency Resolution
Error: Package: php-common-5.3.28-2.w5.x86_64 (webtatic)
           Requires: libcurl.so.3()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

How do I resolve the libcurl.so.3()(64bit) issue?

  • 写回答

1条回答 默认 最新

  • dtrn74832 2014-02-12 20:03
    关注

    I encountered something similar a while back, when I accidentally installed an el5 repo on a el6 machine.

    To fix the problem, I:

    • removed all el5 installed packages. (I found them with rpm -qa | grep el5)
    • removed el5 repo
    • installed el6 repo

    And after that all worked.

    Seeing that "w5" tag in packages names, makes me think that you did a similar mistake and you installed a repository for centos 5 on a centos 6 machine.

    Update: It looks like I was right. Webtatic it uses "w5" tag for el5 packages and "w6" tag for el6 packages. So you had an el5 repo installed on a el6 machine.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 matlab有关常微分方程的问题求解决
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法