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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: goudal at enseirb dot fr
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 05:01:28 2025 UTC