ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  PHP 4.3 and Mac OS X
Subject:   mcrypt
Date:   2003-02-28 18:55:56
From:   tychay
Response to: mcrypt

I had no problem compiling against the fink libraries. My Configure line:
'./configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-apxs=/usr/sbin/apxs' '--enable-soap=/sw' '--with-imagick=/sw' '--with-xmlrpc' '--with-pdflib=/sw' '--with-iodbc=/usr' '--with-mysql=/sw' '--with-mysql-sock=/private/tmp/mysql.sock' '--with-mnogosearch=/sw' '--with-ming=/sw' '--with-mime-magic' '--with-mhash=/sw' '--with-mcrypt=/sw' '--with-iconv=/sw' '--with-iconv-dir=/sw' '--with-gmp=/sw' '--with-gettext=/sw' '--with-gd' '--with-jpeg-dir=/sw' '--with-png-dir=/sw' '--with-xpm-dir=/sw' '--with-freetype-dir=/sw' '--with-t1lib=/sw' '--enable-gd-native-ttf' '--enable-exif' '--with-tiff-dir=/sw' '--with-dom=/sw' '--with-curl=/sw' '--with-curlwrappers' '--with-bz2=/sw' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-config-file-path=/etc' '--with-expat-dir=/sw' '--enable-wddx' '--enable-sockets' '--with-mm=/sw' '--enable-mbstring=all' '--enable-mbregex' '--enable-ftp' '--enable-dio' '--enable-dbx' '--enable-dba' '--with-db3=/sw' '--with-gdbm=/sw' '--with-ndbm=/usr' '--with-cdb' '--with-flatfile' '--enable-calendar' '--enable-bcmath' '--disable-debug' '--disable-short-tags'


The version I am using is libmcrypt(-shlibs)-2.5.5-1 unstable package from Fink.


My test script (Mac OS X 10.2.4, PB G4/800):


bash-2.05a$ php -r 'echo base64_encode(mcrypt_ecb(MCRYPT_BLOWFISH, "key", "Something to encrypt",MCRYPT_ENCRYPT)),"\n";'
HWiUtsE0PWDKoK6wtNTSiSjbdz0KUeLa


Hope this helps,


terry chay
tychay at php dot net