Image 01 Image 02

服务器的mcrypt组件version >= 2.5.0解决方法

Posted on 14th 九月 2009 by admin
2

服务器是centos x86_64安装mcrypt的时候一直提示

checking for libmcrypt – version >= 2.5.0… no
*** Could not run libmcrypt test program, checking why…
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding LIBMCRYPT or finding the wrong
*** version of LIBMCRYPT. If it is not finding LIBMCRYPT, you’ll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
***
configure: error: *** libmcrypt was not found

google了所有的方法,全都试过了,还不行

最后终于找到解决方法了

重新安装libmcrypt加上路径

./configure -prefix=/usr/local/libmcrypt

make

make install

再安装mcrypt

LD_LIBRARY_PATH=/usr/local/lib ./configure –with-libmcrypt-prefix=/usr/local/libmcrypt

加上路径,终于安装上了

这问题困绕了我多天



2
Responses to.. 服务器的mcrypt组件version >= 2.5.0解决方法

1
听雨 posted on 九月 15th 2009

呵呵!以前这个路径问题也是困扰了我好多天。



2
thank posted on 十一月 9th 2009

终于找到办法了,赶快记下来



Leave a reply...