php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57026 Cannot install File Info
Submitted: 2006-05-19 14:56 UTC Modified: 2014-11-09 09:18 UTC
Votes:8
Avg. Score:4.1 ± 1.4
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: kharris at lhinfo dot com Assigned:
Status: Wont fix Package: PECL (PECL)
PHP Version: 4.4.0 OS: Suse 10 Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kharris at lhinfo dot com
New email:
PHP Version: OS:

 

 [2006-05-19 14:56 UTC] kharris at lhinfo dot com
Description:
------------
failure with pecl install FileInfo



Reproduce code:
---------------
pecl install FileInfo

Expected result:
----------------
Successful install message

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:         20020918
Zend Module Api No:      20020429
Zend Extension Api No:   20050606
ERROR: `phpize' failed

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-15 19:43 UTC] burkhard dot vogel at gmx dot net
Can confirm this error for SuSE 9.3.
output:
building in /tmp/tmpxSTOzK/Fileinfo-1.0.3
running: phpize
Configuring for:
  PHP Api Version:   20020918
  Zend Module Api No:   20020429
  Zend Extension Api No:   20021010
rolling back 9 file operations
+ rm /usr/share/php/doc/Fileinfo/.tmpCREDITS
+ rm /usr/share/php/doc/Fileinfo/.tmpEXPERIMENTAL
+ rm /usr/share/php/doc/Fileinfo/.tmpfileinfo.php
ERROR: `phpize' failed
 [2006-11-07 16:33 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 version 1.0.4
 [2007-01-09 17:30 UTC] pecl at demomusic dot nu
Can confirm with version 1.0.4:

root@ubuntu606m:~# pecl install fileinfo
downloading Fileinfo-1.0.4.tgz ...
Starting to download Fileinfo-1.0.4.tgz (5,835 bytes)
.....done: 5,835 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
ERROR: `phpize' failed
root@ubuntu606m:~#

This system is Ubuntu Dapper with Dotdeb php 5.2.0 Apache 2
 [2007-01-09 20:16 UTC] pecl at demomusic dot nu
I found downloadiding 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 is not found in any of these locations:

/usr/local/include/magic.h
/usr/local/magic.h
/usr/include/magic.h
/usr/magic.h
/usr/share/file/include/magic.h
/usr/share/file/magic.h

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 bug strangely enough, but allows for manual installation.
 [2007-03-03 10:10 UTC] modir at huanga dot com
Hi, I can confirm the same error with FileInfo 1.0.4 and PEAR 1.5.0 and PHP 5.1.6

It would be good to have a better error message. Or more information in the log file.

# pecl install fileinfo
downloading Fileinfo-1.0.4.tgz ...
Starting to download Fileinfo-1.0.4.tgz (5,835 bytes)
.....done: 5,835 bytes
3 source files, building
running: phpize
sh: phpize: command not found
ERROR: `phpize' failed
 [2007-04-04 08:19 UTC] sven dot hoffmeister at gmail dot com
Try installing php5-dev, if not already done. This fixed all PEAR/PECL problems for me.
 [2007-04-11 20:58 UTC] marcb at eastlink dot ca
Any success in installing this package on a windows install.

Running PHP4.4.6 
As far as i know its all up to date. 

Trying to install fileinfo any revision and it comes up with missing .dsp file. 

Is there something i'm doign wrong. I see this posted all over the internet and no resolution. Tried to used the php_fileinfo.dll but i have a feeling it only works with php5 and i'm not to sure about going to that right now.

Is there a dll or install for windows installs that will work?

C:\php>pear install pecl/fileinfo
downloading Fileinfo-1.0.4.tgz ...
Starting to download Fileinfo-1.0.4.tgz (5,83
.....done: 5,835 bytes
3 source files, building
ERROR: The DSP Fileinfo.dsp does not exist.
 [2007-10-25 02:14 UTC] r dot ozturk at dizayn dot de
Linux 2.4.27-3-386
PHP Version 5.2.4-0.dotdeb.1

php5-dev amd libmagic-dev is installed!


server:/# pecl install fileinfo
downloading Fileinfo-1.0.4.tgz ...
Starting to download Fileinfo-1.0.4.tgz (5,835 bytes)
.....done: 5,835 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
ERROR: `phpize' failed
 [2008-05-23 11:21 UTC] kharris at lhinfo dot com
Well it has been two years since I posted the original message and I still can't get PECL to install Fileinfo. I have gone through several iterations of Linux (redhat, fedora, suse, etc.) to no avail.  I have seen all over the web where others have this issue and sometimes it gets resolved and other times it doesn't. 

On php.net there's an alternate method of installation by downloading, compiling and then modifying the php.ini file to use the newly compiled extension.  This worked for me, but PECL doesn't recognize the install and I can only use the function based, not the classed based method.

As an aside, sometimes now, it downloads and appears to compile, but ends with a 'make failed' (no other errors),
sometimes it ends with 'config failed' (again no other errors) and sometimes just like the original post.
Any suggestions?

Thanks,
 [2008-05-29 23:45 UTC] adancalderon at GOOGLESMAILSERVICE dot com
Does anyone have any clue on this issue.  I am running Slackware 12.1 and I getting the same thing:


 pecl install fileinfo
downloading Fileinfo-1.0.4.tar ...
Starting to download Fileinfo-1.0.4.tar (Unknown size)
........done: 24,064 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
ERROR: `phpize' failed
 [2008-06-28 05:33 UTC] kevin at intheleadllc dot com
I had the same issue trying to install fileinfo on Ubuntu 8.04:
Starting to download Fileinfo-1.0.4.tgz (5,835 bytes)
.....done: 5,835 bytes
3 source files, building
running: phpize
sh: phpize: command not found
ERROR: `phpize' failed

installing both php5-dev and libmagic-dev corrected the issue and I was able to install fileinfo using pecl
 [2008-07-05 07:01 UTC] florinpatan at gmail dot com
Hello,

I'm running a apache2+php5 instalation on Debian Etch and I can't install this extension.
When I try with 

pecl install FileInfo

it fails like this:

configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
sh: make: command not found
ERROR: `make' failed


Thanks,

Florin
 [2008-07-23 01:24 UTC] tarnishednite at gmail dot com
FC7 installed file info successfully after installing file-devel so . . . 

]# yum file-devel
]# pecl install fileinfo

and all is good
 [2008-09-17 01:26 UTC] fvg at hotmail dot com
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
sh: make: not found
ERROR: `make' failed

ubuntu server 8.04
 [2008-09-17 01:35 UTC] fcg at hotmail dot com
easy solution for me 

1.- apt-get install apache2 libapache2-mod-php5 php-pear php5-dev imagemagick aspell-pt-pt libmagic-dev make

2.- pecl install fileinfo

:-)
 [2008-11-23 18:45 UTC] guenter at grodotzki dot ph
these are my steps:

# cd /usr/src/php-5.2.6/ext
# wget http://pecl.php.net/get/Fileinfo
# tar xvfz Fileinfo
# rm Fileinfo
# cd Fileinfo-1.0.4 Fileinfo
# cd ../
# rm configure
# ./buildconf --force
# ./configure --help | grep fileinfo

but unfortunately nothing is found. I was able to install it on another system some months ago with no problems, but no suddenly I can not even find a configure option for it.
 [2009-01-09 15:04 UTC] jhopan at gmail dot com
USE   

YAST   install autoconfig package ant probe again
#pecl install Fileinfo-1.0.4

and thats all.
 [2010-06-21 13:22 UTC] ted at ligondiscovery dot com
Re: [2007-01-10 01:16 UTC] pecl at demomusic dot nu

"After some googling about where to find magic.h led me to the dead
simple solution:

apt-get install libmagic-dev"

Thanks a lot for the solution, this worked for me!
 [2011-07-12 03:15 UTC] au at gala dot mx
root@abc-money:/usr/bin# pecl install Fileinfo
WARNING: "pear/Fileinfo" is deprecated in favor of "channel://php-src/ext/fileinfo/in php sources"
downloading Fileinfo-1.0.4.tgz ...
Starting to download Fileinfo-1.0.4.tgz (5,835 bytes)
.....done: 5,835 bytes
3 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module

ERROR: `phpize' failed
 [2011-09-23 00:14 UTC] test at test dot com
Install PECL Fileinfo for php 5.2.17 (Below php 5.3.x)

Install all libraries such as m4, automake, autoconf, etc. 
are installed via yum

Before doint this run:
1. locate php/modules
This will show you the location where the file is to be 
copied to after compiling

1. mkdir /temp
2. cd /temp
3. Dowload the package http://pecl.php.net/get/Fileinfo-
1.0.4.tgz
4. Extract using  tar xvf Fileinfo-1.0.4.tgz
5. cd Fileinfo-1.0.4
6. phpize fileinfo (After this new files will be compiled)
7. ./configure (Begin to compile package)
8. make (You should see )

	Libraries have been installed in:
		   /temp/Fileinfo-1.0.4/modules

	.............blah blah ...
	Build complete.
	Don't forget to run 'make test'.

9. cp fileinfo.so /usr/lib64/php/modules/ (In my case this 
is path using locate php/modules. In i386 it might be 
/usr/lib/php/modules)
10. cd /
11. rm -rf temp (Delete the temp folder you created or leave 
it if you use or use it later)
12. locate php.in (Find the main php.ini usually in 
/etc/php.ini or if using vhots, you might want to manually 
edit them all.
13. nano /etc/php.ini
14. Add the following lines:
	
	;Manually compiled extensions
	extension=intl.so
	extension=fileinfo.so

15. service httpd restart (Restart apache)
16. php -v (Just to check if there are any errors)
17. All done

You can use roundcube mails installer configuration check 
usually "$roundcubeinstalldir/installer/index.php?_step=1 to 
verify if the components are working.
 [2014-11-09 09:18 UTC] remi@php.net
-Status: Open +Status: Wont fix -Package: Fileinfo +Package: PECL
 [2014-11-09 09:18 UTC] remi@php.net
All PHP maintained versions now have fileinfo extension include, so closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 05:01:29 2024 UTC