2

I'm having a very hard time getting mcrypt for PHP installed on a Red Hat 4 server. I've downloaded the rpm but it tells me:

error: Failed dependencies:
    php-common(x86-32) = 5.4.7-2.fc18 is needed by php-mcrypt-5.4.7-2.fc18.i686
    rpmlib(FileDigests) <= 4.6.0-1 is needed by php-mcrypt-5.4.7-2.fc18.i686
    libc.so.6(GLIBC_2.4) is needed by php-mcrypt-5.4.7-2.fc18.i686
    libltdl.so.7 is needed by php-mcrypt-5.4.7-2.fc18.i686
    rtld(GNU_HASH) is needed by php-mcrypt-5.4.7-2.fc18.i686
    rpmlib(PayloadIsXz) <= 5.2-1 is needed by php-mcrypt-5.4.7-2.fc18.i686

So when I try to install one of those packages, they also require another 8 packages. So I'm diving into dependency hell here. Now if I try to compile mcrypt from source, this is what I get:

checking for libmcrypt - version >= 2.5.0... no
*** Could not run libmcrypt test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means LIBMCRYPT was incorrectly installed
*** or that you have moved LIBMCRYPT since it was installed. In the latter case, you
*** may want to edit the libmcrypt-config script: no
configure: error: *** libmcrypt was not found

But I was able to install libmcrypt from an rpm packages successfully. Any suggestions? Also, I cannot use up2date as it requires an active paid account from Red Hat and since the staff has changed rather rapidly in the last year where I work, no one knows if there even was any support accounts.

Chris
  • 205
  • 1
  • 4
  • 9

3 Answers3

3

You are missing glibc:

libc.so.6(GLIBC_2.4) is needed by php-mcrypt-5.4.7-2.fc18.i686

which to my knowledge you basically cannot update unless you upgrade RHEL. Our systems were running RHEL5 for the longest time and we had the same issue with installing software, upgrade or basically enter dependency hell. Try and find a package for this software from back in the rhel4 days?

JMeterX
  • 3,407
0

There's php-mcrypt package at least in rhel5 extras. If you find a RHEL4 repository with php-mcrypt and install it to yum it'll take care of it's dependencies.

yum search php-mcrypt

0

To compile something with libmcrypt you'll need libmcrypt-devel not libmcrypt. libmcrypt is just a .so shared library, while -devel includes the header files needed for compilation.

Same with other dependencies. Check out also config.log about the program being compiled. It's usually several pages from the bottom.