RE: [PHP] mcrypt installation
Here is how I installed it and got it working. This is straight out of the PHP manual. You should read it, it helps. LIV. Mcrypt Encryption Functions Introduction This is an interface to the mcrypt library, which supports a wide variety of block algorithms such as DES, TripleDES, Blowfish (default), 3-WAY, SAFER-SK64, SAFER-SK128, TWOFISH, TEA, RC2 and GOST in CBC, OFB, CFB and ECB cipher modes. Additionally, it supports RC6 and IDEA which are considered non-free. _ Requirements These functions work using http://mcrypt.hellug.gr/ mcrypt. To use it, download libmcrypt-x.x.tar.gz from here http://mcrypt.hellug.gr/ and follow the included installation instructions. Windows users will find all the needed compiled mcrypt binaries here http://ftp.proventum.net/pub/php/win32/misc/mcrypt/ -Original Message- From: Tom Ray [Lists] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 3:41 PM To: PHP List Subject: [PHP] mcrypt installation I'm just a little curious, I've never really don't this before, but is installing mcrypt usually a very hard thing to do, or will it be pretty simple for a dolt like me? :) Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mcrypt installation problems
Download MCRYPT SRC. tar -zxf mcrypt.tar.gz cd mcrypt ./configure --prefix=/usr/local/mcrypt make make install cd /usr/local/php ./configure --with-mcrypt=/usr/local/mcrypt Replace path's with your own. On Wed, 2003-02-05 at 09:07, Jean-Christian Imbeault wrote: Can anyone point to information on how to install mcrypt support for PHP. I tried the PHP mcrypt pages but they are quite lacking in details. I downloaded libmcrypt and got that installed fine. I also downloaded mcrypt (do I really need it?) but that wouldn't configure. It complains that: 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 ... I tried compiling PHP with --with-mcrypt=/usr/src/mcrypt-2.6.3/ (the locate of the mcrypt source files) but that gave me an error when I did make: cc1: warning: changing search order for system directory /usr/local/include cc1: warning: as it has already been specified as a non-system directory /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:229:1: warning: MCRYPT_FAILED redefined In file included from /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:34: [...] Questions: 1- Do I need both libmcrypt AND mcrypt? 2- What is the installation procedure? I tried the obvious ./configure make combination but to no avail ... Thanks! Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Adam Voigt ([EMAIL PROTECTED]) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc signature.asc Description: This is a digitally signed message part
Re: [PHP] mcrypt installation problems
Adam Voigt wrote: Download MCRYPT SRC. tar -zxf mcrypt.tar.gz cd mcrypt ./configure --prefix=/usr/local/mcrypt From the commands you give you imply that libmcrypt is not needed. Are you sure? The configure command you give does not work. Here's the complete error: [root@host110 mcrypt-2.6.3]# ./configure --prefix=/usr/local/mcrypt [delete configure messages ...] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mcrypt installation problems
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
Re: [PHP] mcrypt installation problems
Tom Rogers wrote: 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 Up to here fine. ./configure --prefix=/usr configure: error: You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/; Hum ... the PHP manual nor the mcrypt web site mentionned the need for mhash Do I really need it? Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mcrypt installation problems
You need only libmcrypt, mcrypt is a command line program that is intended to replace the Unix crypt program. To build the mcrypt binary you need mhash and libmcrypt, for PHP unless you want mhash you need only libmcrypt. Jason On Wed, 2003-02-05 at 07:07, Jean-Christian Imbeault wrote: Can anyone point to information on how to install mcrypt support for PHP. I tried the PHP mcrypt pages but they are quite lacking in details. I downloaded libmcrypt and got that installed fine. I also downloaded mcrypt (do I really need it?) but that wouldn't configure. It complains that: 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 ... I tried compiling PHP with --with-mcrypt=/usr/src/mcrypt-2.6.3/ (the locate of the mcrypt source files) but that gave me an error when I did make: cc1: warning: changing search order for system directory /usr/local/include cc1: warning: as it has already been specified as a non-system directory /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:229:1: warning: MCRYPT_FAILED redefined In file included from /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:34: [...] Questions: 1- Do I need both libmcrypt AND mcrypt? 2- What is the installation procedure? I tried the obvious ./configure make combination but to no avail ... Thanks! Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mcrypt installation problems
Jason Sheets wrote: You need only libmcrypt, mcrypt is a command line program that is intended to replace the Unix crypt program. To build the mcrypt binary you need mhash and libmcrypt, for PHP unless you want mhash you need only libmcrypt. Ok, so to build mcrypt support into PHP I only need libmcrypt ... that's it? I can compile and install that with no errors. But when I try and compile PHP I get this big long error error ... Any hints?? gcc -Iext/mcrypt/ -I/usr/src/php-4.3.0/ext/mcrypt/ -DPHP_ATOM_INC -I/usr/src/php-4.3.0/include -I/usr/src/php-4.3.0/main -I/usr/src/php-4.3.0 -I/usr/src/php-4.3.0/Zend -I/usr/local/psql//include -I/usr/src/php-4.3.0/ext/xml/expat -I/usr/src/php-4.3.0/TSRM -g -O2 -c /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c -o ext/mcrypt/mcrypt.o echo ext/mcrypt/mcrypt.lo /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:229:1: warning: MCRYPT_FAILED redefined In file included from /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:34: /usr/local/include/mcrypt.h:31:1: warning: this is the location of the previous definition /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c: In function `zm_startup_mcrypt': /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:279: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:280: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:281: `MCRYPT_BLOWFISH_128' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:281: (Each undeclared identifier is reported only once /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:281: for each function it appears in.) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:282: `MCRYPT_BLOWFISH_192' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:283: `MCRYPT_BLOWFISH_256' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:284: `MCRYPT_BLOWFISH_448' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:285: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:286: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:287: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:288: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:289: `MCRYPT_IDEA' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:290: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:291: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:292: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:293: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:294: `MCRYPT_RC2_128' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:295: `MCRYPT_RC2_256' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:296: `MCRYPT_RC2_1024' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:297: `MCRYPT_RC4' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:298: `MCRYPT_RC6_128' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:299: `MCRYPT_RC6_192' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:300: `MCRYPT_RC6_256' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:301: `MCRYPT_SAFER_64' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:302: `MCRYPT_SAFER_128' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:303: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:304: `MCRYPT_SERPENT_128' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:305: `MCRYPT_SERPENT_192' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:306: `MCRYPT_SERPENT_256' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:307: `MCRYPT_TWOFISH_128' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:308: `MCRYPT_TWOFISH_192' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:309: `MCRYPT_TWOFISH_256' undeclared (first use in this function)
Re: [PHP] mcrypt installation problems
Tom Rogers wrote: Looks that way :) I also have that in /usr/src and in php as --with-mhash=/usr/src/mhash-0.8.17 Still no go. Did you compile into php 4.3.0? I finally got libmcrypt, mhash and mcrypt to make and install, but can't get PHP to work with --with-mcrypt OR --with-mcrypt=/usr/local OR --with-mcrypt=../mcrypt-2.6.3/ I get this big compile error: gcc -Iext/mcrypt/ -I/usr/src/php-4.3.0/ext/mcrypt/ -DPHP_ATOM_INC -I/usr/src/php-4.3.0/include -I/usr/src/php-4.3.0/main -I/usr/src/php-4.3.0 -I/usr/src/php-4.3.0/Zend -I/usr/local/psql//include -I/usr/src/php-4.3.0/ext/xml/expat -I/usr/src/php-4.3.0/TSRM -g -O2 -c /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c -o ext/mcrypt/mcrypt.o echo ext/mcrypt/mcrypt.lo /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:229:1: warning: MCRYPT_FAILED redefined In file included from /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:34: /usr/local/include/mcrypt.h:31:1: warning: this is the location of the previous definition /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c: In function `zm_startup_mcrypt': /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:279: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:280: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:281: `MCRYPT_BLOWFISH_128' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:281: (Each undeclared identifier is reported only once /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:281: for each function it appears in.) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:282: `MCRYPT_BLOWFISH_192' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:283: `MCRYPT_BLOWFISH_256' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:284: `MCRYPT_BLOWFISH_448' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:285: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:286: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:287: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:288: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:289: `MCRYPT_IDEA' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:290: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:291: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:292: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:293: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:294: `MCRYPT_RC2_128' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:295: `MCRYPT_RC2_256' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:296: `MCRYPT_RC2_1024' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:297: `MCRYPT_RC4' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:298: `MCRYPT_RC6_128' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:299: `MCRYPT_RC6_192' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:300: `MCRYPT_RC6_256' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:301: `MCRYPT_SAFER_64' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:302: `MCRYPT_SAFER_128' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:303: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:304: `MCRYPT_SERPENT_128' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:305: `MCRYPT_SERPENT_192' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:306: `MCRYPT_SERPENT_256' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:307: `MCRYPT_TWOFISH_128' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:308: `MCRYPT_TWOFISH_192' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:309: `MCRYPT_TWOFISH_256' undeclared (first use in this function) /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:310: warning: passing arg 3 of `zend_register_long_constant' makes integer from