John P
Wed, 28 Nov 2007 16:18:44 -0800
Thanks Bjarne. I got it working finally! I followed your suggestion using the instructions at http://www.php.net/manual/en/install.pecl.phpize.php and did the following: pecl download fileinfo tar xvzf Fileinfo-1.0.4.tgz cd Fileinfo-1.0.4 phpize ./configure --with-fileinfo=/opt/local make make install This creates the extension file fileinfo.so Edit php.ini to load the dynamic extension from where ever the fileinfo.so file is located by adding the following line: extension=<path to fileinfo.so>fileinfo.so Restart of apache and it all appears to work. Thanks again. Really appreciate it. John Bjarne D Mathiesen wrote: > > > 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ø > _______________________________________________ > macports-users mailing list > macports-users@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo/macports-users > > -- View this message in context: http://www.nabble.com/PHP-PECL-Extension-Installation-Failure-tf4788169.html#a14016632 Sent from the MacPorts - Users mailing list archive at Nabble.com. _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users