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

5 Comments »

  1. Thanks for the post. This saved me today. I was trying to install fileinfo also and ./configure failed until I ran yum install file-devel

    Comment by webwiki — January 13, 2013 @ 10:50 am

  2. Dude, you’re a time saver!

    Comment by handa — March 7, 2014 @ 3:16 am

  3. Thak you very much!

    I was following instructions to compile viking in a CentOS machine and this post helped a lot.

    Greetings!

    Comment by Pancho — November 15, 2014 @ 1:38 am

  4. save my day~

    Comment by royn — March 11, 2017 @ 7:43 pm

  5. Thank you very much!

    Comment by Netman — March 16, 2017 @ 9:34 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress