kim larsen asked:
I have now tried to install PHP PDO in 2 hours without any luck, and i have searched everywhere to get a solution – but without any luck.
yum install php-pdo
doesn’t work and i cannot find extension = PDO in php.ini.
have tried updating
yum update
and cleaing it, nothing works. What to do?
I have CentOS release 6.4 (Final)
-bash-4.1# rpm -e rpmfusion-free-release rpmfusion-nonfree-release
-bash-4.1# yum install php-pdo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.checkdomain.de
* epel: mirrors.n-ix.net
* extras: mirror.checkdomain.de
* rpmforge: mirror.jgotteswinter.com
* updates: mirror.checkdomain.de
Setting up Install Process
No package php-pdo available.
Error: Nothing to do
-bash-4.1# yum clean
Loaded plugins: fastestmirror
Error: clean requires an option: headers, packages, metadata, dbcache, plugins, expire- cache, rpmdb, all
-bash-4.1# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.checkdomain.de
* epel: mirrors.n-ix.net
* extras: mirror.checkdomain.de
* rpmforge: mirror.jgotteswinter.com
* updates: mirror.checkdomain.de
Setting up Update Process
No Packages marked for Update
-bash-4.1# yum install php-pdo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.checkdomain.de
* epel: mirrors.n-ix.net
* extras: mirror.checkdomain.de
* rpmforge: mirror.jgotteswinter.com
* updates: mirror.checkdomain.de
Setting up Install Process
No package php-pdo available.
Error: Nothing to do
-bash-4.1# su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release- $(rpm -E %fedora).noarch.rpm'
Loaded plugins: fastestmirror
Setting up Local Package Process
Cannot open: http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release- %fedora.noarch.rpm. Skipping.
Cannot open: http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release- %fedora.noarch.rpm. Skipping.
Nothing to do
-bash-4.1# su -c 'rpm -Uvh http://download1.rpmfusion.org/free/el/updates/5/i386/rpmfusion- free-release-5-1.noarch.rpm ttp://download1.rpmfusion.org/nonfree/el/updates/5/i386/rpmfusion-nonfree-release-5- 1.noarch.rpm'
Retrieving http://download1.rpmfusion.org/free/el/updates/5/i386/rpmfusion-free-release-5-1.noarch.rpm
warning: /var/tmp/rpm-tmp.d5nTQs: Header V3 DSA/SHA1 Signature, key ID e74f0522: NOKEY
error: open of ttp://download1.rpmfusion.org/nonfree/el/updates/5/i386/rpmfusion-nonfree- release-5-1.noarch.rpm failed: No such file or directory
-bash-4.1# su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6- 1.noarch.rpm'
Loaded plugins: fastestmirror
Setting up Local Package Process
rpmfusion-free-release-6-1.noarch.rpm | 5.9 kB 00:00
Examining /var/tmp/yum-root-ch9z50/rpmfusion-free-release-6-1.noarch.rpm: rpmfusion- free-release-6-1.noarch
Marking /var/tmp/yum-root-ch9z50/rpmfusion-free-release-6-1.noarch.rpm to be installed
Loading mirror speeds from cached hostfile
* base: mirror.checkdomain.de
* epel: mirrors.n-ix.net
* extras: mirror.checkdomain.de
* rpmforge: mirror.jgotteswinter.com
* updates: mirror.checkdomain.de
rpmfusion-nonfree-release-6-1.noarch.rpm | 6.0 kB 00:00
Examining /var/tmp/yum-root-ch9z50/rpmfusion-nonfree-release-6-1.noarch.rpm: rpmfusion-nonfree-release-6-1.noarch
Marking /var/tmp/yum-root-ch9z50/rpmfusion-nonfree-release-6-1.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rpmfusion-free-release.noarch 0:6-1 will be installed
---> Package rpmfusion-nonfree-release.noarch 0:6-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version
Repository Size
================================================================================
Installing:
rpmfusion-free-release noarch 6-1 /rpmfusion-free-release-6-1.noarch 3.7 k
rpmfusion-nonfree-release
noarch 6-1 /rpmfusion-nonfree-release-6-1.noarch 3.8 k
Transaction Summary
================================================================================
Install 2 Package(s)
Total size: 7.5 k
Installed size: 7.5 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : rpmfusion-free-release-6-1.noarch 1/2
Installing : rpmfusion-nonfree-release-6-1.noarch 2/2
Verifying : rpmfusion-nonfree-release-6-1.noarch 1/2
Verifying : rpmfusion-free-release-6-1.noarch 2/2
Installed:
rpmfusion-free-release.noarch 0:6-1 rpmfusion-nonfree-release.noarch 0:6-1
Complete!
-bash-4.1# yum updateLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirror.checkdomain.de
* epel: mirrors.n-ix.net
* extras: mirror.checkdomain.de
* rpmforge: mirror.jgotteswinter.com
* rpmfusion-free-updates: ftp-stud.hs-esslingen.de
* rpmfusion-nonfree-updates: ftp-stud.hs-esslingen.de
* updates: mirror.checkdomain.de
rpmfusion-free-updates | 2.7 kB 00:00
rpmfusion-free-updates/primary_db | 247 kB 00:00
rpmfusion-nonfree-updates | 2.2 kB 00:00
rpmfusion-nonfree-updates/primary_db | 46 kB 00:00
Setting up Update Process
No Packages marked for Update
-bash-4.1# yum install php-pdoLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirror.checkdomain.de
* epel: mirrors.n-ix.net
* extras: mirror.checkdomain.de
* rpmforge: mirror.jgotteswinter.com
* rpmfusion-free-updates: ftp-stud.hs-esslingen.de
* rpmfusion-nonfree-updates: ftp-stud.hs-esslingen.de
* updates: mirror.checkdomain.de
Setting up Install Process
No package php-pdo available.
E rror: Nothing to do
-bash-4.1# /etc/yum.conf
-bash: /etc/yum.conf: Permission denied
-bash-4.1#
My answer:
You appear to have installed RPM Fusion repositories for Fedora, rather than for Enterprise Linux. These would not be compatible with your CentOS system and therefore would cause this error.
To resolve the issue, remove the repos (e.g. rpm -e rpmfusion-free-release rpmfusion-nonfree-release
) and replace them with the correct repos.
Then, check your /etc/yum.conf
file and remove any inappropriate exclude
s.
(The error 503 is a temporary failure and will resolve itself when the upstream fixes their web site. You can ignore that for now.)
View the full question and any other answers on Server Fault.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.