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 stm32循迹小车代码问题
  • ¥15 输入一堆单词,使其去重输出
  • ¥15 qc代码,修改和添加东西
  • ¥50 Unity的粒子系统使用shadergraph(内置管线)制作的一个顶点偏移shader,但是粒子模型移动时,顶点也会偏移
  • ¥15 如何用python处理excel的数据(极值标准化)
  • ¥15 三向应力状态求剪应力
  • ¥15 jupyter notebook如何添加libGL.so.1库
  • ¥20 easyPoi能否实现下拉多选或者复选框
  • ¥15 网桥在转发帧时,会变帧的源地址和目的地址吗?
  • ¥15 用Multisim设计汽车尾灯控制电路