RE: [PECL-DEV] Fileinfo install...

From: Date: Thu, 17 Feb 2005 21:54:15 +0000
Subject: RE: [PECL-DEV] Fileinfo install...
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-2028@lists.php.net to get a copy of this message
Sorry to be a pain... But I feel like I'm actually getting somewhere... I installed file 4.13 and now I'm getting the follow error... Searched it on google finding nothing. checking for magic files in default path... found in /usr checking for magic_open in -lmagic... no configure: error: wrong magic lib version or lib not found `/tmp/tmpuxc9a2/Fileinfo-0.2/configure' failed -----Original Message----- From: Ilia Alshanetsky [mailto:ilia@prohost.org] Sent: Thursday, February 17, 2005 4:02 PM To: sumoraigabe-pecl@yahoo.com Cc: Shawn Rizzoli; pecl-dev@lists.php.net Subject: Re: [PECL-DEV] Fileinfo install... fileinfo extension depends on libmagic library that is the part of the "file" package, which you can find here: ftp://ftp.astron.com/pub/file/. Please keep in mind that the old versions of "file" package didn't have libmagic utility, for it you need 4.08+ version iirc. Ilia sumoraigabe-pecl@yahoo.com wrote: > My guess is that, since this is a redhat-based linux system, you need > to make sure you have the -dev rpms installed for the "magic" package. > You probably are missing the libs / includes. > > > --- Shawn Rizzoli <shawnr@kaycan.com> wrote: > > >>Trying to install fileinfo for the past couple of hours... Going I >>little nuts trying to solve a problem, hopefully you guys can give me >>some help. >>Here's what's going on; >> >>Centos 3.4 (RHEL repack) >>PHP Version 4.3.2 >>Apache 2.0.46-44 >> >>**ERROR MSG:** >> >>checking for magic files in default path... not found >>configure: error: Please reinstall the libmagic distribution >> >>I can't figure out how to get the magic library working, I've read the >>same problem happening on FreeBSD 5.3 but the fix doesn't work for me. >> >># pear install Fileinfo-beta >> >>downloading Fileinfo-0.2.tgz ... >>Starting to download Fileinfo-0.2.tgz (5,491 bytes) >>.....done: 5,491 bytes >>3 source files, building >>running: phpize >>Configuring for: >> PHP Api Version: 20020918 >> Zend Module Api No: 20020429 >> Zend Extension Api No: 20021010 >>building in /var/tmp/pear-build-root/Fileinfo-0.2 >>running: /tmp/tmpMkxiMw/Fileinfo-0.2/configure >>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... no checking >>if compiler supports -Wl,-rpath,... yes checking for PHP prefix... >>/usr checking for PHP includes... -I/usr/include/php >>-I/usr/include/php/main -I/usr/include/php/Zend >>-I/usr/include/php/TSRM checking for PHP extension directory... >>/usr/lib/php4 >>checking how to run the C preprocessor... gcc -E checking for egrep... >>grep -E 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 >>`/tmp/tmpMkxiMw/Fileinfo-0.2/configure' failed >> >>-- >>PECL development discussion Mailing List >>(http://pecl.php.net/) >>To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > > ===== > -- PECL development discussion Mailing List (http://pecl.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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