problem install Fileinfo-0.3-> error: wrong magic lib version or lib not found

From: Date: Tue, 28 Jun 2005 08:02:28 +0000
Subject: problem install Fileinfo-0.3-> error: wrong magic lib version or lib not found
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-2497@lists.php.net to get a copy of this message
Hi at all I have a problem to install Fileinfo-0.3 on My server. Server type: Freebsd 5.4 File package: file-4.13 Php version: 5.0.4 Positions of include file and library /usr/local/include/magic.h /usr/local/lib/libmagic.so.1 /usr/local/lib/libmagic.so /usr/local/lib/libmagic.la /usr/local/lib/libmagic.a /usr/local/share/file/magic /usr/local/share/file/magic.mime /usr/local/share/file/magic.mgc /usr/local/share/file/magic.mime.mgc I have tried to install this php extension into php-50.4/ext,with pear install package.xml But the result is the same: it does't find magic library. This is the compile log 3 source files, building running: phpize Configuring for: PHP Api Version: 20031224 Zend Module Api No: 20041030 Zend Extension Api No: 220040412 building in /var/tmp/pear-build-root/Fileinfo-0.3 running: /usr/local/src/package_pear/package_pecl/Fileinfo-0.3/configure checking build system type... i386-unknown-freebsd5.4 checking host system type... i386-unknown-freebsd5.4 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 ANSI C... none needed checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... yes checking for PHP prefix... /usr/local checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend checking for PHP extension directory... /usr/local/lib/php/20041030 checking for re2c... re2c checking for gawk... no checking for mawk... no checking for nawk... nawk checking for fileinfo support... yes, shared checking for magic files in default path... found in /usr/local LIBNAME: magic LIBSYMBOL: magic_open FILEINFO_DIR: /usr/local checking for magic_open in -lmagic... no configure: error: wrong magic lib version or lib not found `/usr/local/src/package_pear/package_pecl/Fileinfo-0.3/configure' failed I have test with normal config.m4 a with different configuration, this is the last one --- config.m4.backup Mon Jun 27 16:52:10 2005 +++ config.m4 Mon Jun 27 16:52:21 2005 @@ -5,8 +5,8 @@ PHP_ARG_WITH(fileinfo, for fileinfo supp [ --with-fileinfo=DIR Include fileinfo support]) if test "$PHP_FILEINFO" != "no"; then - SEARCH_PATH="/usr/local/include /usr/include /usr/share/file" - SEARCH_FOR="/magic.h" + SEARCH_PATH="/usr/local /usr /usr/share/file" + SEARCH_FOR="/include/magic.h" if test -r $PHP_FILEINFO/$SEARCH_FOR; then FILEINFO_DIR=$PHP_FILEINFO else @@ -29,6 +29,10 @@ if test "$PHP_FILEINFO" != "no"; then LIBNAME=magic LIBSYMBOL=magic_open + echo "LIBNAME: " $LIBNAME + echo "LIBSYMBOL: " $LIBSYMBOL + echo "FILEINFO_DIR: " $FILEINFO_DIR + PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, [ PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $FILEINFO_DIR/lib, FILEINFO_SHARED_LIBADD) @@ -39,7 +43,7 @@ if test "$PHP_FILEINFO" != "no"; then -L$FILEINFO_DIR/lib -lm -lz -ldl ]) - MAGIC_MIME_LOCATIONS="/usr/local/share/file/magic /usr/share/file/magic /usr/share/misc/file/magic /etc/magic /usr/share/misc" + MAGIC_MIME_LOCATIONS="/usr/local/share/file/magic + /usr/local/share/mime/magic " for i in $MAGIC_MIME_LOCATIONS; do if test -f $i; then PHP_DEFAULT_MAGIC_FILE=$i Any idea? Thank you Maurizio

« previous php.pecl.dev (#2497) next »