Page 1 of 1

configure: error: *** libmcrypt was not found

Posted: Fri Jan 13, 2006 11:18 am
by bigjl
I was tring to install libmcrypt-2.5.7 and mcrypt-2.6.4 on RHLE4 but failed.
I followed the instruction downloaded from WWW.
After made install of libmcrypt-2.5.7, there was a error shown on the screen when I tried to install mcrypt-2.6.4:
...
...
checking for libmcrypt-config... /usr/local/bin/libmcrypt-config
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

I have checked /usr/local/lib/libmcrypt, but couldnt find a file. I think there must be some problems during installing libmcrypt-2.5.7. Is it normal?


Please help me out with this problem. Many thanks

Posted: Fri Jan 13, 2006 12:02 pm
by Chris Corbyn
How did you install libmcrypt ? Was it a RedHat package (RPM) or did you do it from source?

Proividing you used to correct RPM or you compiled from source you should be able to specify to location of libmcrypt when you install.

./configure --with-mcrypt=/usr/local/mcrypt or whatver. I assume this is for the mcrypt functions in PHP ?

Posted: Fri Jan 13, 2006 12:32 pm
by AKA Panama Jack
BTW, you might also install the MHash library as well. I think that is also required. At least it has been every time I have installed mcrypt.

Finally done it. thnx guys

Posted: Mon Jan 16, 2006 9:37 am
by bigjl
Here is my experience of installing Mcrypt
Run Program following the order shown below:

1. libmcrypt-2.5.7-1.1.fc2.dag.i386.rpm;

2. libmhash-0.9.1-1.1.fc2.dag.i386.rpm;

3. mhash-0.9.3-1.i586.rpm

4. php-mcrypt-4.3.9-3.2.1.i386.rpm

It works! :)