|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56856 Unable to build Fileinfo
Submitted: 2006-02-23 08:51 UTC Modified: 2006-11-07 16:31 UTC
From: goudal at enseirb dot fr Assigned:
Status: Not a bug Package: Fileinfo (PECL)
PHP Version: 4.4.1 OS: Solaris
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: goudal at enseirb dot fr
New email:
PHP Version: OS:


 [2006-02-23 08:51 UTC] goudal at enseirb dot fr
When configuring fileinfo from pear, it does not find libmagic.
The problems is located here : in config.m4

  SEARCH_PATH="/usr/local /usr /usr/share/file"

It is NOT possible to have libmagic installed else where in the system.

The lib should be searched using CPPFLAGS and LDFLAGS not in hard coded path.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-23 17:23 UTC] zaa at zaa dot pp dot ru
It is possible to let configure script know path to your libmagic installation. 
Try to perform the following operations:

tar xvfz Fileinfo-1.0.3.tgz
cd Fileinfo-1.0.3
./configure --with-fileinfo=/path/to/libmagic/installation/
make install

/path/to/libmagic/installation/ should have include/magic.h file
 [2006-11-07 16:31 UTC] ilia at prohost dot org
Use --with-fileinfo=/path/to/lib
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 13:01:34 2024 UTC