This is the method we use
First ensure that /usr/local/lib is in /etc/ld.so.conf
and run ldconfig

wget ftp://argeas.cs-net.gr/pub/unix/mcrypt/libmcrypt/libmcrypt-2.4.9.tar.gz
tar -pxzf libmcrypt-2.4.9.tar.gz
cd libmcrypt-2.4.9
./configure --disable-posix-threads
make
make install

#
# http://mhash.sourceforge.net/
# http://mhash.sourceforge.net/dl/mhash-0.8.3.tar.gz

wget http://mhash.sourceforge.net/dl/mhash-0.8.9.tar.gz
tar -pxzf mhash-0.8.9.tar.gz
cd mhash-0.8.9
./configure
make
make install

wget ftp://argeas.cs-net.gr/pub/unix/mcrypt/mcrypt-2.5.5.tar.gz
tar -pxzf mcrypt-2.5.5.tar.gz
cd mcrypt-2.5.5
./configure
make
make install

cp /usr/local/lib/libmcrypt.* /usr/lib
ln -s /usr/local/lib/libmhash.so.2 /usr/lib/libmhash.so.2

If you have any problems at each install rerun ldconfig to be sure it finds
any files it needs

Then with PHP we use :-
with-mcrypt=/usr/local --with-mhash=/usr/local

Fingers crossed :)

Darren

> -----Original Message-----
> From: John Peebles [mailto:[EMAIL PROTECTED]]
> Sent: 11 July 2001 17:43
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] LibMcrypt Linking Problem
>
>
> Hi everyone,
>     I am trying to recompile php with mcrypt and I downloaded
> libmcrypt, and
> ran the configure script, did a make, a make test (no errors), and a make
> install.  Then I tried to do the same with mcrypt and I got the following
> error:
>
> *** 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 tried adding "/usr/local/bin" to the "/etc/ld.so.conf " file
> since that is
> where the INSTALL file said the executable is usually installed.
> Can anyone
> help me with this?
>
>
> Thanks in advance,
>
> John
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to