php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57078 pecl install fileinfo error
Submitted: 2006-06-12 08:35 UTC Modified: 2006-11-07 16:32 UTC
From: jameslabocki at gmail dot com Assigned:
Status: Not a bug Package: Fileinfo (PECL)
PHP Version: 5.1.2 OS: Solaris 5.9
Private report: No CVE-ID: None
 [2006-06-12 08:35 UTC] jameslabocki at gmail dot com
Description:
------------
configure: error: Please reinstall the libmagic distribution

Reproduce code:
---------------
bash-2.05# pecl install fileinfo


Expected result:
----------------
I expected fileinfo extension to be installed

Actual result:
--------------
downloading Fileinfo-1.0.3.tar ...
Starting to download Fileinfo-1.0.3.tar (-1 bytes)
........done: 23,552 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025
building in /var/tmp/pear-build-defaultuser/Fileinfo-1.0.3
running: /tmp/tmpFjaON1/Fileinfo-1.0.3/configure
checking for egrep... egrep
checking for a sed that does not truncate output... /bin/sed
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... yes
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20050922
checking for PHP installed headers prefix... /usr/local/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for fileinfo support... yes, shared
checking for magic files in default path... not found
configure: error: Please reinstall the libmagic distribution
ERROR: `/tmp/tmpFjaON1/Fileinfo-1.0.3/configure' failed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-07 16:32 UTC] ilia at prohost dot org
Thank you for taking the time to report a problem with the package.
Unfortunately you are not using a current version of the package -- 
the problem might already be fixed. Please download a new
version from http://pecl.php.net/packages.php

If you are able to reproduce the bug with one of the latest
versions, please change the package version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PECL.

Please try 1.0.4 version of fileinfo
 [2007-11-21 13:50 UTC] tiago dot freire at gmail dot com
I am using fileinfo 1.0.4 and the error persists.

Tested with Ubuntu 6.06 LTS (Dapper) and 7.10 (Gutsy)
 [2007-12-07 22:23 UTC] abraham196 at hotmail dot com
did you try to install devel package for libmagic? It worked for me.
regards
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 17 14:03:37 2021 UTC