LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-13-2012, 10:20 AM   #1
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Rep: Reputation: 9
Question 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
 
Old 03-13-2012, 10:38 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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
 
1 members found this post helpful.
Old 03-13-2012, 10:44 AM   #3
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

I installed from Webtatic repo vers. 5.2.17 (how to on bottom of page)
 
1 members found this post helpful.
Old 03-13-2012, 11:25 AM   #4
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Original Poster
Rep: Reputation: 9
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.
 
Old 03-13-2012, 11:36 AM   #5
lrtward
Member
 
Registered: Feb 2011
Distribution: CentOS, Ubuntu
Posts: 97

Original Poster
Rep: Reputation: 9
Manually installing the rpm worked like a charm.
Thanks tons for that; I couldn't find that version anywhere.
 
Old 03-22-2012, 07:12 PM   #6
steveleung597
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Smile

Hi Irtward,

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

Steve
 
Old 03-23-2012, 04:38 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
You'd just run "rpm -Uvh name.of.rpm"
 
Old 03-23-2012, 12:05 PM   #8
steveleung597
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Thanks Chris, I will sure try this... Have a nice day!

Steve
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Depsolving problems php-mcrypt WzJazz Linux - Enterprise 6 07-04-2011 08:35 PM
[SOLVED] Trying to test PHP connectivity to Postgresql 8.3.9 (CentOS 5.5 x86_64) kapshure Linux - Newbie 9 08-06-2010 05:20 PM
qpixman-0.13.3-4.el5.x86_64.rpm is not installed alinawaz Linux - Server 5 06-02-2010 11:15 PM
Problem installing php-mbstring (depsolving problems) Nitrofish Linux - Newbie 4 04-24-2010 02:09 AM
AR8121 Makefile:62 error on el5 x86_64 mango_boy Linux - Newbie 0 12-15-2009 08:49 AM


All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration