How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

November 24, 2011

install fileinfo with pecl problem on centos

Filed under: Linux — admin @ 11:29 am

Today I was trying to install fileinfo on a server and get this error.

checking for magic files in default path… not found
configure: error: Please reinstall the libmagic distribution
ERROR: `/tmp/pear/download/Fileinfo-1.0.4/configure’ failed

After i try to install yum install libmagic , libmagic-dev , libmagic-devel and see don’t work the panic was here. After a long search I discover that the solution was to install
yum install file-devel

So if you are on same situation hope this will help you .

Regards

Powered by WordPress