John P wrote:
I've come to a dead end on this one. Think I'll have to resort to Linux on a virtual machine.
What's the libmagic library that the PHP PECL extension tries to bind to ? (http://pecl.php.net/package/Fileinfo) The magic.h you've found in /opt/local seems to belong to the ImageMagick package (port provides /opt/local/includes/magick/magic.h) There's a libmagic project (http://sourceforge.net/project/showfiles.php?group_id=5493) but that doesn't seem to be available from macports. I've been able to get as far as you by going another way: following the instructions here - http://www.php.net/manual/en/install.pecl.phpize.php and modifying the config.m4 file in the distribution. That means using: pecl download fileinfo tar -xf Fileinfo-1.0.4 My modifications to config.m4 consists of modifying one of the if sentences - to be more specific, the statement in line 9: if test -r $PHP_FILEINFO/includes/magick/magic.h in line 33, I've been experimenting with diffent names for the LIBNAME without success After my modifications to config.m4, I executed: phpize ./configure --with-fileinfo=/opt/local Following this route will also give you the config.log file you've been uable to find (http://www.freebsdforums.org/forums/showthread.php?p=278948) After eache change to config.m4 you'll have to do a phpize --clean before trying again. I'm hoping this is of help to you :-) -- Bjarne D Mathiesen København N ; Danmark ; Europa ---------------------------------------------------------------------- denne besked er skrevet i et totalt M$-frit miljø