LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS 5.4 64bit php-gd issue (https://www.linuxquestions.org/questions/linux-newbie-8/centos-5-4-64bit-php-gd-issue-770960/)

Nicarlo 11-23-2009 07:24 AM

CentOS 5.4 64bit php-gd issue
 
Hey guys,

Im having a problem when trying to install php-gd. It comes back with missing dependency but when i check, it is installed on the system. At this point im out of ideas after doing a pretty big search on google.

Here is a little more information

[root@MTL1 yum.repos.d]# yum install php-gd
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-gd.x86_64 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-gd
--> Finished Dependency Resolution
php-gd-5.1.6-23.2.el5_3.x86_64 from base has depsolving problems
--> Missing Dependency: php-common = 5.1.6-23.2.el5_3 is needed by package php-gd-5.1.6-23.2.el5_3.x86_64 (base)
Error: Missing Dependency: php-common = 5.1.6-23.2.el5_3 is needed by package php-gd-5.1.6-23.2.el5_3.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
[root@MTL1 yum.repos.d]# yum list php-gd
Available Packages
php-gd.x86_64 5.1.6-23.2.el5_3 base
[root@MTL1 yum.repos.d]# yum list php-common
Installed Packages
php-common.x86_64 5.2.11-2.el5.art installed
[root@MTL1 yum.repos.d]#

Nicarlo 11-23-2009 09:12 AM

to sum up what i did to fix this issue.

The cause of this problem was the mixing of different repos. I removed third-party repos and then did a yum remove php-common and then reinstalled everything that was removed by that command. After that i had no additional problems

Thanks!

SJ1979 11-23-2009 09:55 AM

Quote:

Originally Posted by Nicarlo (Post 3766757)
to sum up what i did to fix this issue.

The cause of this problem was the mixing of different repos. I removed third-party repos and then did a yum remove php-common and then reinstalled everything that was removed by that command. After that i had no additional problems

Thanks!

Thanks for summing this up. I had the same problem but found the answer here.

HIF277767 03-11-2012 02:46 PM

p.s. this message was added to be able to post link in solution

HIF277767 03-11-2012 02:53 PM

Here is solution how ot install php 5.2.17 with GD under CentOS 64bit. Create a file:

Code:

nano /etc/yum.repos.d/varien.repo
Write following text there:

Code:

[varien]
name=Varien Inc. pubclic PHP repository - $basearch
baseurl=http://rpms.varien.com/php5/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://rpms.varien.com/RPM-GPG-KEY-varien

Save the file and execute following command:

Code:

yum update php*
That's it, good luck!


All times are GMT -5. The time now is 11:22 PM.