configure: error: *** libmcrypt was not found

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bigjl
Forum Newbie
Posts: 15
Joined: Fri Jan 13, 2006 11:15 am

configure: error: *** libmcrypt was not found

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 ?
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post 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.
bigjl
Forum Newbie
Posts: 15
Joined: Fri Jan 13, 2006 11:15 am

Finally done it. thnx guys

Post 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! :)
Post Reply