Question

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
Was it helpful?

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?

OTHER TIPS

Okay, this gets VERY OLD and TIRED, when people who "answer" the questions are ASKING WHY do you want to do it this way (i.e., using "old" software & repositories).

Bottom line: There are many valid reasons - also, those same reasons for NOT UPDATING via Yum auto-updates and/or RHEL auto-updates, etc. My case, for example, Web host company kept us on OLD versions of mysql (5.0.96-community and 5.1), PHP (5.2.13) and Apache (2.2.15 and 2.2.22?) - and they refused to change some things (i.e., modify 'deprecated mysql_connect commands' and other commands) to the latest mysqli and/or PDO formats, SO, when we took over the site, the code WILL ONLY RUN USING OLD SOFTWARE. So, you see, there can be valid reasons for doing this.

So, to allow us time to figure out what is mysqli, and what is PDO and "how" do we change our software and code for those more updated (non-deprecated) products, we MUST STAY ON OLD CODE!

But, to answer original poster: you can do

yum --nogpgcheck localinstall some.rpm --nodeps

And then, via --nodeps, you will be able to bypass "dependency checks."

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top