Hi,

Thursday, February 6, 2003, 12:07:49 AM, you wrote:
JCI> Can anyone point to information on how to install mcrypt support for 
JCI> PHP. I tried the PHP mcrypt pages but they are quite lacking in details.

JCI> I downloaded libmcrypt and got that installed fine.

JCI> I also downloaded mcrypt (do I really need it?) but that wouldn't 
JCI> configure. It complains that:

JCI> checking for libmcrypt - version >= 2.5.0... no
JCI> *** Could not run libmcrypt test program, checking why...
JCI> *** The test program compiled, but did not run. This usually means
JCI> *** that the run-time linker is not finding LIBMCRYPT or finding the 
JCI> wrong ...

JCI> I tried compiling PHP with  --with-mcrypt=/usr/src/mcrypt-2.6.3/ (the 
JCI> locate of the mcrypt source files) but that gave me an error when I did 
JCI> make:

JCI> cc1: warning: changing search order for system directory 
JCI> "/usr/local/include"
JCI> cc1: warning:   as it has already been specified as a non-system directory
JCI> /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:229:1: warning: "MCRYPT_FAILED" 
JCI> redefined
JCI> In file included from /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:34:
JCI> [...]

JCI> Questions:

JCI> 1- Do I need both libmcrypt AND mcrypt?
JCI> 2- What is the installation procedure? I tried the obvious "./configure 
JCI> && make" combination but to no avail ...

JCI> Thanks!

JCI> Jc

I did it this way
untar libmcrypt and mcrypt into /usr/src
then in libmcrypt
./configure --prefix=/usr (could be /usr/local if you want
make
make install
ldconfig
cd ../mcrypt-2.6.3
./configure --prefix=/usr
make
make install

then in php

--with-mcrypt=/usr/src/mcrypt-2.6.3

-- 
regards,
Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to