note 72264 added to ref.fileinfo

From: Date: Wed, 10 Jan 2007 01:34:58 +0000
Subject: note 72264 added to ref.fileinfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-121517@lists.php.net to get a copy of this message
I had a real headache trying to install this package through pear/pecl. Ran into what looks like this bug: http://pecl.php.net/bugs/bug.php?id=7673 (phpize fails) I found downloading the package manually and running ./configure helped show what the problem is: ... checking for fileinfo support... yes, shared checking for magic files in default path... not found configure: error: Please reinstall the libmagic distribution <quit> I though this was because of a missing magic-database like magic.mime but examining the configure-script, magic.h is searched for. Problem for me was that include/magic.h was not found. After some googling about where to find magic.h led me to the dead simple solution: apt-get install libmagic-dev This does NOT solve the original installation bug strangely enough, but allows for manual installation: 1. Find the url to the latest version of fileinfo from http://pecl.php.net/package/Fileinfo (atm: http://pecl.php.net/get/Fileinfo-1.0.4.tgz) 2. Download, compile and install wget http://pecl.php.net/get/Fileinfo-1.0.4.tgz gunzip Fileinfo-1.0.4.tgz tar -xvf Fileinfo-1.0.4.tar cd fileinfo-1.0.4 ./configure make make install 3. Add extension=fileinfo.so in your php.ini file 4. Restart Apache ---- Server IP: 129.16.214.50 Probable Submitter: 80.217.109.98 ---- Manual Page -- http://www.php.net/manual/en/ref.fileinfo.php Edit -- https://master.php.net/note/edit/72264 Del: integrated -- https://master.php.net/note/delete/72264/integrated Del: useless -- https://master.php.net/note/delete/72264/useless Del: bad code -- https://master.php.net/note/delete/72264/bad+code Del: spam -- https://master.php.net/note/delete/72264/spam Del: non-english -- https://master.php.net/note/delete/72264/non-english Del: in docs -- https://master.php.net/note/delete/72264/in+docs Del: other reasons-- https://master.php.net/note/delete/72264 Reject -- https://master.php.net/note/reject/72264 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#121517) next »