简体   繁体   English

PHP 5.3.23的PHP-Devel依赖性问题

[英]PHP-Devel Dependency issues with PHP 5.3.23

I am trying to install php-devel and I get this issue. 我正在尝试安装php-devel,但出现此问题。

I have PHP Installed, I have tried Googling and other things but they don't work. 我已经安装了PHP,已经尝试了Google搜索和其他功能,但是它们无法正常工作。

This is my environment: 这是我的环境:

PHP -version 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

OS version: cat /etc/redhat-release 操作系统版本: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

Follow the instructions in the link. 按照链接中的说明进行操作。

http://www.howtoforge.com/quick-n-easy-lamp-server-centos-rhel http://www.howtoforge.com/quick-n-easy-lamp-server-centos-rhel

or if you are done installing and configuring your MYSQL and Web Server just copy the below: 或者,如果您已完成安装和配置MYSQL和Web服务器的操作,则只需复制以下内容:

yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml

Download and install the following RPM 下载并安装以下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

Problem: You have php 5.3.26 and you are trying to install php-devel 5.1 问题:您拥有php 5.3.26,并且正在尝试安装php-devel 5.1

Check the RPM provided. 检查提供的RPM。 I suppose it should go with Red Hat 5.5. 我想它应该与Red Hat 5.5一起使用。 If it doesn't either you need to find the appropriate RPM of php-devel 5.3.26 for your system (try yum install php53-devel) or Downgrade your php to version 5.1. 如果不是,则需要为您的系统找到合适的RPM php-devel 5.3.26(尝试yum install php53-devel)或将php降级到5.1版。 Or update your repos and then you can fetch the latest version of both php and php-devel using yum 或更新您的存储库,然后可以使用yum获取php和php-devel的最新版本

OK I suppose this should work. 好吧,我想这应该工作。

Step 1: Remove the current version of php 第1步:删除当前版本的php

yum erase php

Step 2: Download and install the following RPM 步骤2:下载并安装以下RPM

http://rpmfind.net//linux/RPM/remi/enterprise/5/x86_64/php-5.4.16-1.el5.remi.x86_64.html

Step 3: Download and Install this RPM 步骤3:下载并安装此RPM

http://rpmfind.net//linux/RPM/remi/enterprise/5/x86_64/php-devel-5.4.15-1.el5.remi.x86_64.html

Your problem seems to be that you have PHP 5.3 installed on your machine, but the default php-devel package that yum tries to install is for PHP 5.1, which causes the conflict. 您的问题似乎是您的计算机上安装了PHP 5.3,但是yum尝试安装的默认php-devel软件包是针对PHP 5.1的,这​​会导致冲突。 You can instead try to install the php-devel meant for PHP 5.3. 您可以改为尝试安装用于PHP 5.3的php-devel。 In some cases, this can be done with: 在某些情况下,可以使用以下方法完成此操作:

yum install php53-devel

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM