簡體   English   中英

刪除PHP 5.4后安裝PHP 5.3-libcurl.so.3()(64bit)問題

[英]Install PHP 5.3 after removing PHP 5.4 - libcurl.so.3()(64bit) issue

我升級到PHP 5.4,這導致使用不推薦使用的mysql_connect函數的多個腳本出現問題。 我將需要稍后重做這些命令才能使用它,但是現在我想回到PHP 5.3

我完全刪除了PHP 5.4,添加了Webtactic存儲庫,告訴原子存儲庫忽略php,php- *

然后,我做yum安裝php php-cli php-gd php-mysql php-mbstring,發生這種情況:

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

如何解決libcurl.so.3()(64bit)問題?

不久前,我在el6機器上意外安裝了el5倉庫時,遇到了類似的情況。

要解決此問題,我:

  • 刪除了所有已安裝的el5軟件包。 (我用rpm -qa | grep el5找到了它們)
  • 刪除了el5回購
  • 已安裝el6回購

在那之后一切正常。

看到軟件包名稱中的“ w5”標記,使我認為您犯了類似的錯誤,並且在centos 6機器上安裝了centos 5的存儲庫。

更新:看來我是對的。 Webtatic對el5軟件包使用“ w5 ”標簽,對el6軟件包使用“ w6 ”標簽。 因此,您在el6機器上安裝了el5回購。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM