LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   CentOS: php-devel-5.1.6-32.el5.x86_64 from base has depsolving problems (http://www.linuxquestions.org/questions/linux-server-73/centos-php-devel-5-1-6-32-el5-x86_64-from-base-has-depsolving-problems-934227/)

lrtward 03-13-2012 09:20 AM

CentOS: php-devel-5.1.6-32.el5.x86_64 from base has depsolving problems
 
I need to install php-devel and php-pear on my server. When I run "yum install php-devel" I get the following:

Quote:

# yum install php-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.trouble-free.net
* epel: mirror.vcu.edu
* extras: mirror.7x24web.net
* updates: mirror.lug.udel.edu
Reducing CentOS-5 Testing to included packages only
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.1.6-32.el5 set to be updated
--> Processing Dependency: php = 5.1.6-32.el5 for package: php-devel
--> Processing Dependency: automake for package: php-devel
--> Running transaction check
---> Package automake.noarch 0:1.9.6-2.3.el5 set to be updated
---> Package php-devel.x86_64 0:5.1.6-32.el5 set to be updated
--> Processing Dependency: php = 5.1.6-32.el5 for package: php-devel
--> Finished Dependency Resolution
php-devel-5.1.6-32.el5.x86_64 from base has depsolving problems
--> Missing Dependency: php = 5.1.6-32.el5 is needed by package php-devel-5.1.6-32.el5.x86_64 (base)
Error: Missing Dependency: php = 5.1.6-32.el5 is needed by package php-devel-5.1.6-32.el5.x86_64 (base)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest

So I followed the suggestions:

Quote:

# package-cleanup --problems
Setting up yum
Reading local RPM database
Processing all local requires
No problems found
# package-cleanup --dupes
Setting up yum
# rpm -Va --nofiles --nodigest
#
I still get the same results when trying to yum install php-devel.

I'm pretty sure my problem is that I'm running a newer version of php than the 5.1.6 that yum install is expecting:
Quote:

# rpm -qa --qf "%{name}-%{version}-%{release}.%{arch}\n" php\*
php-pdo-5.2.10-1.el5.centos.x86_64
php-mbstring-5.2.10-1.el5.centos.x86_64
php-mysql-5.2.10-1.el5.centos.x86_64
php-common-5.2.10-1.el5.centos.x86_64
php-ldap-5.2.10-1.el5.centos.x86_64
php-mcrypt-5.2.9-2.el5.centos.3.x86_64
php-5.2.10-1.el5.centos.x86_64
php-gd-5.2.10-1.el5.centos.x86_64
php-cli-5.2.10-1.el5.centos.x86_64
php-xml-5.2.10-1.el5.centos.x86_64
But I can't for the life of me figure out how to install php-devel 5.2.10-1 and just skip 5.1.6

acid_kewpie 03-13-2012 09:38 AM

php 5.2 isn't available officially on centos yet, that appears to just be a bunch of test rpms you installed, so you either need to downgrade those packages to the official 5.1.6 versions available in yum, or manually install the devel package, which appears to be http://www.iredmail.org/yum/rpms/5/ <---- there. OR maybe look at using php53 which IS in centos 5.8

lithos 03-13-2012 09:44 AM

Hi,

I installed from Webtatic repo vers. 5.2.17 (how to on bottom of page)

lrtward 03-13-2012 10:25 AM

Yes, those are "test" versions; phpMyAdmin requires php 5.2 so I upgraded to 5.2 via the c5-testing repo described in lots of posts on upgrading php to 5.2 on CentOS.

But now I need php-devel and I'm stuck.
Even "yum --disablerepo=\* --enablerepo=c5-testing install php-devel" gives me the error.

I'll take a look at the two suggestions you guys posted; thanks bunches for taking time to reply to me.

lrtward 03-13-2012 10:36 AM

Manually installing the rpm worked like a charm.
Thanks tons for that; I couldn't find that version anywhere.

steveleung597 03-22-2012 06:12 PM

Hi Irtward,

I face the exact problem that you have. Can you share how you manually install the rpm. Many many thanks!!

Steve

acid_kewpie 03-23-2012 03:38 AM

You'd just run "rpm -Uvh name.of.rpm"

steveleung597 03-23-2012 11:05 AM

Thanks Chris, I will sure try this... Have a nice day!

Steve


All times are GMT -5. The time now is 05:48 AM.