我很难在Red Hat 4服务器上安装PHP的mcrypt。 我已经下载了rpm,但它告诉我:
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
所以当我尝试安装其中一个软件包时,他们还需要另外8个软件包。 所以我在这里深入依赖地狱。 现在,如果我尝试从源代码编译mcrypt,这是我得到:
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
但是我能够成功安装rpm包中的libmcrypt。 有什么build议么? 另外,我不能使用up2date,因为它需要来自红帽的有效付费账户,而且由于我工作的最后一年工作人员发生了很快的变化,所以没有人知道是否有任何支持账户。
你错过了glibc:
libc.so.6(GLIBC_2.4) is needed by php-mcrypt-5.4.7-2.fc18.i686
据我所知,除非升级RHEL,否则基本上不能更新。 我们的系统运行RHEL5的时间最长,而且我们在安装软件,升级或基本input依赖地狱方面遇到同样的问题。 尝试从rhel4的日子里find这个软件包?
至less在rhel5里有php-mcrypt包。 如果你find一个使用php-mcrypt的RHEL4仓库并将其安装到yum,它将会处理它的依赖关系。
百胜searchphp-mcrypt
要用libmcrypt编译一些东西,你需要libmcrypt-devel而不是libmcrypt。 libmcrypt只是一个.so共享库,而-devel包含编译所需的头文件。
与其他依赖关系相同。 也检查一下正在编译的程序的config.log。 通常是从底部开始的几页。