[英]PHP-Devel Dependency issues with PHP 5.3.23
我正在嘗試安裝php-devel,但出現此問題。
我已經安裝了PHP,已經嘗試了Google搜索和其他功能,但是它們無法正常工作。
這是我的環境:
PHP版本
PHP 5.3.26 (cli) (built: Jun 9 2013 12:23:50)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
操作系統版本:cat / etc / redhat-release
Red Hat Enterprise Linux Client release 5.5 (Tikanga)
[root@box html]# yum install php-devel
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.1.6-27.el5 set to be updated
--> Processing Dependency: php = 5.1.6-27.el5 for package: php-devel
--> Finished Dependency Resolution
php-devel-5.1.6-27.el5.x86_64 from workstation has depsolving problems
--> Missing Dependency: php = 5.1.6-27.el5 is needed by package php-devel-5.1.6-27.el5.x86_64 (workstation)
Packages skipped because of dependency problems:
php-devel-5.1.6-27.el5.x86_64 from workstation
按照鏈接中的說明進行操作。
http://www.howtoforge.com/quick-n-easy-lamp-server-centos-rhel
或者,如果您已完成安裝和配置MYSQL和Web服務器的操作,則只需復制以下內容:
yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml
下載並安裝以下RPM
http://rpm.pbone.net/index.php3/stat/4/idpl/21966196/dir/centos_other/com/php-devel-5.3.26-1.w5.x86_64.rpm.html
問題:您擁有php 5.3.26,並且正在嘗試安裝php-devel 5.1
檢查提供的RPM。 我想它應該與Red Hat 5.5一起使用。 如果不是,則需要為您的系統找到合適的RPM php-devel 5.3.26(嘗試yum install php53-devel)或將php降級到5.1版。 或更新您的存儲庫,然后可以使用yum獲取php和php-devel的最新版本
好吧,我想這應該工作。
第1步:刪除當前版本的php
yum erase php
步驟2:下載並安裝以下RPM
http://rpmfind.net//linux/RPM/remi/enterprise/5/x86_64/php-5.4.16-1.el5.remi.x86_64.html
步驟3:下載並安裝此RPM
http://rpmfind.net//linux/RPM/remi/enterprise/5/x86_64/php-devel-5.4.15-1.el5.remi.x86_64.html
您的問題似乎是您的計算機上安裝了PHP 5.3,但是yum
嘗試安裝的默認php-devel軟件包是針對PHP 5.1的,這會導致沖突。 您可以改為嘗試安裝用於PHP 5.3的php-devel。 在某些情況下,可以使用以下方法完成此操作:
yum install php53-devel
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.