I am attempting to install the fileinfo extension on an Apple Mac OSX 10.5 under MacPorts. I have php5 installed along with the php5-pear package. Running the command pecl install fileinfo results in the following output: Macintosh:~ root# pecl install fileinfo downloading Fileinfo-1.0.4.tgz ... Starting to download Fileinfo-1.0.4.tgz (5,835 bytes) .....done: 5,835 bytes 3 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 building in /var/tmp/pear-build-root/Fileinfo-1.0.4 running: /private/tmp/pear/cache/Fileinfo-1.0.4/configure checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc and cc understand -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-apple-darwin9.0.0 checking host system type... i686-apple-darwin9.0.0 checking target system type... i686-apple-darwin9.0.0 checking for PHP prefix... /opt/local checking for PHP includes... -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib checking for PHP extension directory... /opt/local/lib/php/extensions/no-debug-non-zts-20060613 checking for PHP installed headers prefix... /opt/local/include/php checking for re2c... re2c checking for re2c version... 0.13.1 (ok) checking for gawk... gawk checking for fileinfo support... yes, shared checking for magic files in default path... not found configure: error: Please reinstall the libmagic distribution ERROR: `/private/tmp/pear/cache/Fileinfo-1.0.4/configure' failed I have tried reinstalling the libmagic package but this makes no difference. Further investigation of the configure script reveals that a header file (magic.h) is missing. The configure script expects magic.h to be in any one of the /usr, /usr/share/file, or /usr/local directories, which it is not. Having found magic.h in the /opt/local/include directory, I have tried copying it to the /usr, /usr/share/file and /usr/local directories, but this only results in a slightly different error: Macintosh:~ root# pecl install fileinfo downloading Fileinfo-1.0.4.tgz ... Starting to download Fileinfo-1.0.4.tgz (5,835 bytes) .....done: 5,835 bytes 3 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 building in /var/tmp/pear-build-root/Fileinfo-1.0.4 running: /private/tmp/pear/cache/Fileinfo-1.0.4/configure checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc and cc understand -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-apple-darwin9.0.0 checking host system type... i686-apple-darwin9.0.0 checking target system type... i686-apple-darwin9.0.0 checking for PHP prefix... /opt/local checking for PHP includes... -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib checking for PHP extension directory... /opt/local/lib/php/extensions/no-debug-non-zts-20060613 checking for PHP installed headers prefix... /opt/local/include/php checking for re2c... re2c checking for re2c version... 0.13.1 (ok) checking for gawk... gawk checking for fileinfo support... yes, shared checking for magic files in default path... found in /usr checking for dl... no checking for __dl... no checking for dl in -ldlopen... no checking for __dl in -ldlopen... no checking for gzgets... no checking for __gzgets... no checking for gzgets in -lz... yes checking for round... yes checking for magic_open in -lmagic... no configure: error: wrong magic lib version or lib not found ERROR: `/private/tmp/pear/cache/Fileinfo-1.0.4/configure' failed Any ideas on what I can do or where I should look to resolve this issue? Any help would be appreciated. John -- View this message in context: http://www.nabble.com/PHP-PECL-Extension-Installation-Failure-tf4788169.html... Sent from the MacPorts - Users mailing list archive at Nabble.com.
I've come to a dead end on this one. Think I'll have to resort to Linux on a virtual machine. -- View this message in context: http://www.nabble.com/PHP-PECL-Extension-Installation-Failure-tf4788169.html... Sent from the MacPorts - Users mailing list archive at Nabble.com.
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ø
I have followed the instructions located here: http://homepage.mac.com/duling/halfdozen/NeDi-Howto.html I've gotten to step 3, "Install and Configure NeDi". Unfortunately, when I run the command "sudo port install nedi" it doesn't work. The debug output is here: http://forum.nedi.ch/index.php?topic=59.msg271#msg271 System is a clean install of Leopard with nothing but the software described in the above link installed. Any assistance with this would be greatly appreciated. Thanks! Chad
On Nov 28, 2007, at 11:36, Boyd, Chad wrote:
I have followed the instructions located here: http://homepage.mac.com/duling/halfdozen/NeDi-Howto.html
I've gotten to step 3, "Install and Configure NeDi". Unfortunately, when I run the command "sudo port install nedi" it doesn't work. The debug output is here: http://forum.nedi.ch/index.php?topic=59.msg271#msg271
System is a clean install of Leopard with nothing but the software described in the above link installed.
I don't see the debug output at the above link. I don't see a bug filed on nedi in our issue tracker, so you may want to do that. http://trac.macosforge.org/projects/macports/wiki/TracTicketing
I'm trying to install gimp2 using macports (os 10.3). I keep getting a loop of errors, but I think I've got it tracked down to this: Requested variant powerpc is not provided by port gimp2.
From what I gather, that means that the port isn't available, am I mistaken?
I've tried it with sudo port install gimp and get similar results. Does this mean I'll have to use the 1.2 version I got working with fink? Thanks, Tony ____________________________________________________________________________________ Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
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... Sent from the MacPorts - Users mailing list archive at Nabble.com.
On Nov 28, 2007, at 6:58 PM, Tony Tambasco wrote:
I'm trying to install gimp2 using macports (os 10.3). I keep getting a loop of errors, but I think I've got it tracked down to this:
Requested variant powerpc is not provided by port gimp2.
From what I gather, that means that the port isn't available, am I mistaken?
I've tried it with sudo port install gimp and get similar results. Does this mean I'll have to use the 1.2 version I got working with fink?
Thanks,
Tony
Tony, "Requested variant is not provided..." is not an error. It just means that particular port doesnt have that (default) variant which port trys to install if it is available. The "loop of errors" you are seeing is just port working through the chains of dependancies and dependencies of dependecies. gimp is a very complex installation with many many dependencies. It will take many hours to install -- days if you have a slow machine. Just let it run ...... William Davis frstanATbellsouthDOTnet Mac OS X.5.1 Darwin 9.1.0 Xquartz-1.2a11 Mac Mini Intel Duo @ 1.86 GHz Mundus vult decepi, ego non
John P wrote:
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
It might also be possible to specify where the *.so gets installed: ./configure --prefix=<path> --with-fileinfo=/opt/local
Restart of apache and it all appears to work.
Thanks again. Really appreciate it.
Glad you got it working :-) I'ld still like to know where the magic.h comes from ;-) Could you post the result of this command: port provides /opt/local/include/magic.h or tell me where else you got it from :-) I can't offhand find a macport version of libmagic :-(
John
-- Bjarne D Mathiesen København N ; Danmark ; Europa ---------------------------------------------------------------------- denne besked er skrevet i et totalt M$-frit miljø
Result of port provides /opt/local/include/magic.h is: /opt/local/include/magic.h is provided by: file (file is the macports equivalent of libmagic I think?) Bjarne D Mathiesen wrote:
Glad you got it working :-)
I'ld still like to know where the magic.h comes from ;-) Could you post the result of this command: port provides /opt/local/include/magic.h or tell me where else you got it from :-) I can't offhand find a macport version of libmagic :-(
-- 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... Sent from the MacPorts - Users mailing list archive at Nabble.com.
participants (6)
-
Bjarne D Mathiesen
-
Boyd, Chad
-
John P
-
Ryan Schmidt
-
Tony Tambasco
-
William Davis