I'm having a problem installing php with mcrypt support. Here's my setup:
debian linux
Apache/1.3.19
php 4.1.2
libmcrypt 2.5.0 (alternately tried mcrypt 2.2.6 and libmcrypt 2.4.22)
I got libmcrypt to install, but when I try to configure php "with
mcrypt" I get problems.This is what I type to configure php:
./configure --with-mcrypt=/home/myuserdir/php/
And this is the error it gives me:
>checking for mcrypt support... yes
>checking for mcrypt_module_open in -lmcrypt... no
>checking for init_mcrypt in -lmcrypt... no
>configure: error: Sorry
And this is what the configure log says:
>configure:29705: checking for mcrypt_module_open in -lmcrypt
>configure:29726: gcc -o conftest -g -O2 -DLINUX=22 -DUSE_HSREGEX
>-DEAPI -DUSE_EXPAT -DSHARED_CORE conftest.c -lmcrypt
> -L/home/[path to...]/mcrypt/lib -lltdl
> -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt 1>&5
>/usr/bin/ld: cannot find -lmcrypt
>collect2: ld returned 1 exit status
>configure: failed program was:
>#line 29715 "configure"
>#include "confdefs.h"
>/* Override any gcc2 internal prototype to avoid an error. */
>/* We use char because int might match the return type of a gcc2
> builtin and then its argument prototype would still apply. */
>char mcrypt_module_open();
>
>int main() {
>mcrypt_module_open()
>; return 0; }
>configure:29778: checking for init_mcrypt in -lmcrypt
>configure:29799: gcc -o conftest -g -O2 -DLINUX=22 -DUSE_HSREGEX
>-DEAPI -DUSE_EXPAT -DSHARED_CORE conftest.c -lmcrypt
> -L/home/[path to...]/mcrypt/lib
> -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt 1>&5
>/usr/bin/ld: cannot find -lmcrypt
>collect2: ld returned 1 exit status
>configure: failed program was:
>#line 29788 "configure"
>#include "confdefs.h"
This is my first time doing this sort of thing, (I've barely even
used telnet before this) so please don't assume I know anything.
Thanks in advance for any help you can give!!
Lucas
--
Fruition Design Collective
http://fruitiondesign.com
Against Patriarchy Conference (Eugene)
http://fruitiondesign.com/againstpatriarchy
Deal With It. (anti-sexist men's zine)
http://fruitiondesign.com/dealwithit
the Insurgent ("news" paper)
http://theinsurgent.org
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php