PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
fileinfo PECL Extension Installation Failure

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions
View previous topic :: View next topic  
Author Message
foxtrot23



Joined: 11 Nov 2007
Posts: 1
Location: Australia

PostPosted: Sun Nov 11, 2007 9:06 am    Post subject: fileinfo PECL Extension Installation Failure Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement