Install php-gd on PHP 5.4
Install php-gd on PHP 5.4
I installed PHP 5.4 last year probably from another repo but now can't install php-gd I get:
--> Missing Dependency: php-common = 5.1.6-44.el5_10 is needed by package php-gd-5.1.6-44.el5_10.i386 (base)
Error: Missing Dependency: php-common = 5.1.6-44.el5_10 is needed by package php-gd-5.1.6-44.el5_10.i386 (base)
Is there a safe repo I can install php-common and php-gd for 5.4?
--> Missing Dependency: php-common = 5.1.6-44.el5_10 is needed by package php-gd-5.1.6-44.el5_10.i386 (base)
Error: Missing Dependency: php-common = 5.1.6-44.el5_10 is needed by package php-gd-5.1.6-44.el5_10.i386 (base)
Is there a safe repo I can install php-common and php-gd for 5.4?
Re: Install php-gd on PHP 5.4
Please, post full yum output + "rpm -qa php\*"
php-gd (and all php extensions) requires the same base package, by design.
If you have install php-common from a third party repo, you must install php-gd from the same repo.
php-gd (and all php extensions) requires the same base package, by design.
If you have install php-common from a third party repo, you must install php-gd from the same repo.
Re: Install php-gd on PHP 5.4
Yum didn't like that command
Re: Install php-gd on PHP 5.4
It wasn't a yum command, it's an rpm command - rpm -qa php\*
You need to know where you got your copy of php 5.4 from and then get the php-gd package from the same place with the same matching version number as the rest of the packages you already have installed. There are many places you can obtain php 5.4 from, some are more reliable than others. There is the IUS Community repo, Remi's repo, webtatic and probably others too. So, for example, if your current packages came from IUS and they are called php54u-5.4.16 then you will now need php54u-gd-5.4.16 to match it (example only, real release numbers will vary in practice).
You need to know where you got your copy of php 5.4 from and then get the php-gd package from the same place with the same matching version number as the rest of the packages you already have installed. There are many places you can obtain php 5.4 from, some are more reliable than others. There is the IUS Community repo, Remi's repo, webtatic and probably others too. So, for example, if your current packages came from IUS and they are called php54u-5.4.16 then you will now need php54u-gd-5.4.16 to match it (example only, real release numbers will vary in practice).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Install php-gd on PHP 5.4
Here is the output
php-common-5.4.20-26.el5.art
php-pdo-5.4.20-26.el5.art
php-devel-5.4.20-26.el5.art
php-cli-5.4.20-26.el5.art
php-soap-5.4.20-26.el5.art
php-pecl-memcache-3.0.8-1.el5.centos.art
php-5.4.20-26.el5.art
php-mysql-5.4.20-26.el5.art
php-pear-1.7.2-2.el5.art
I can't remember the repo used - does this give enough clues?
php-common-5.4.20-26.el5.art
php-pdo-5.4.20-26.el5.art
php-devel-5.4.20-26.el5.art
php-cli-5.4.20-26.el5.art
php-soap-5.4.20-26.el5.art
php-pecl-memcache-3.0.8-1.el5.centos.art
php-5.4.20-26.el5.art
php-mysql-5.4.20-26.el5.art
php-pear-1.7.2-2.el5.art
I can't remember the repo used - does this give enough clues?
Re: Install php-gd on PHP 5.4
A google search says it might me Atomic, although Centos are warning about that repo.
What is the best way to do this update without getting into problems?
What is the best way to do this update without getting into problems?
Re: Install php-gd on PHP 5.4
If your packages came from 'art' then you have a choice to either install the php-gd that 'art' supply or to go with a more reputable repo and rip out what you have now and start over with the newer repo. The IUS Community repo are currently shipping php 5.4.32-2 packages for CentOS 5. That would be significantly newer than the 5.4.20 that you currently have and may have critical security updates that you are missing now. The IUS packages are called php54* to make sure that you cannot install them by accident and overwrite the php 5.1.6 package set that CentOS ships.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Install php-gd on PHP 5.4
I've just installed the Atmoic repo and done it that way as this is on a live site taking transaction and don't want to disturb things (it's removed now).
I think it would be best to migrate to Centos 7 now and not have to worry about this kind of thing.
I think it would be best to migrate to Centos 7 now and not have to worry about this kind of thing.