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 对于知识的学以致用的解释
  • ¥50 三种调度算法报错 有实例
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败