php.net |  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
 [2006-02-23 08:51 UTC] goudal at enseirb dot fr
Description:
------------
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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
phpize
./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: Tue Mar 19 08:01:29 2024 UTC