安装mcrypt的时候提示libmcrypt was not found


*** 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
***

如提示,修改LD_LIBRARY_PATH就可以了

>export LD_LIBRARY_PATH=/usr/local/lib:LD_LIBRARY_PATH

>./configure –with-libmcrypt-prefix=/usr/local

>make && make install

安装成功。


发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注