Issue
I'm trying to install PHP and MySql on an Apache Web Server on a RHEL 5.7 VM. I have tried to do it with the following yum Remi and EPEL repos:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
It looks like there are "Missing Dependencies" whenever I try to do this:
yum --enablerepo=remi,remi-test install mysql mysql-server php php-common
Then, I get the following error:
--> Finished Dependency Resolution
mysql-server-5.5.37-1.el5.remi.x86_64 from remi has depsolving problems
--> Missing Dependency: libaio.so.1(LIBAIO_0.4)(64bit) is needed by package mysql-server-5.5.37-1.el5.remi.x86_64 (remi)
php-cli-5.4.27-1.el5.remi.x86_64 from remi has depsolving problems
--> Missing Dependency: libgmp.so.3()(64bit) is needed by package php-cli-5.4.27-1.el5.remi.x86_64 (remi)
mysql-server-5.5.37-1.el5.remi.x86_64 from remi has depsolving problems
--> Missing Dependency: libaio.so.1()(64bit) is needed by package mysql-server-5.5.37-1.el5.remi.x86_64 (remi)
mysql-server-5.5.37-1.el5.remi.x86_64 from remi has depsolving problems
--> Missing Dependency: perl(DBI) is needed by package mysql-server-5.5.37-1.el5.remi.x86_64 (remi)
mysql-server-5.5.37-1.el5.remi.x86_64 from remi has depsolving problems
--> Missing Dependency: libaio.so.1(LIBAIO_0.1)(64bit) is needed by package mysql-server-5.5.37-1.el5.remi.x86_64 (remi)
mysql-server-5.5.37-1.el5.remi.x86_64 from remi has depsolving problems
--> Missing Dependency: perl-DBI is needed by package mysql-server-5.5.37-1.el5.remi.x86_64 (remi)
php-5.4.27-1.el5.remi.x86_64 from remi has depsolving problems
--> Missing Dependency: httpd is needed by package php-5.4.27-1.el5.remi.x86_64 (remi)
php-5.4.27-1.el5.remi.x86_64 from remi has depsolving problems
--> Missing Dependency: httpd-mmn = 20051115 is needed by package php-5.4.27-1.el5.remi.x86_64 (remi)
php-5.4.27-1.el5.remi.x86_64 from remi has depsolving problems
--> Missing Dependency: libgmp.so.3()(64bit) is needed by package php-5.4.27-1.el5.remi.x86_64 (remi)
mysql-server-5.5.37-1.el5.remi.x86_64 from remi has depsolving problems
--> Missing Dependency: perl-DBD-MySQL is needed by package mysql-server-5.5.37-1.el5.remi.x86_64 (remi)
Error: Missing Dependency: httpd is needed by package php-5.4.27-1.el5.remi.x86_64 (remi)
Error: Missing Dependency: libgmp.so.3()(64bit) is needed by package php-5.4.27-1.el5.remi.x86_64 (remi)
Error: Missing Dependency: httpd-mmn = 20051115 is needed by package php-5.4.27-1.el5.remi.x86_64 (remi)
Error: Missing Dependency: perl-DBI is needed by package mysql-server-5.5.37-1.el5.remi.x86_64 (remi)
Error: Missing Dependency: libaio.so.1()(64bit) is needed by package mysql-server-5.5.37-1.el5.remi.x86_64 (remi)
Error: Missing Dependency: libgmp.so.3()(64bit) is needed by package php-cli-5.4.27-1.el5.remi.x86_64 (remi)
Error: Missing Dependency: perl-DBD-MySQL is needed by package mysql-server-5.5.37-1.el5.remi.x86_64 (remi)
Error: Missing Dependency: libaio.so.1(LIBAIO_0.1)(64bit) is needed by package mysql-server-5.5.37-1.el5.remi.x86_64 (remi)
Error: Missing Dependency: perl(DBI) is needed by package mysql-server-5.5.37-1.el5.remi.x86_64 (remi)
Error: Missing Dependency: libaio.so.1(LIBAIO_0.4)(64bit) is needed by package mysql-server-5.5.37-1.el5.remi.x86_64 (remi)
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
The program package-cleanup is found in the yum-utils package.
I already have httpd (I can run service httpd start), and whenever I try to install libaio, I get this:
[root@mod2014 rpm-gpg]# yum install --enablerepo=remi,remi-test libaio libaio-devel
Setting up Install Process
No package libaio available.
No package libaio-devel available.
Nothing to do
Solution
As you can see on this webpage, there is no libaio rpm package in the repo you're trying to use. I would suggest you to include this CentOS repo into your /etc/yum.repos.d/ directory or download everything manually.
By the way, what is reason of using such an outdated RHEL distributive?
Answered By - Vitaly Isaev Answer Checked By - Marie Seifert (WPSolving Admin)