The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PECL Fileinfo Error

Discussion in 'General Discussion' started by kre8web, Dec 14, 2009.

  1. kre8web

    kre8web Active Member

    Joined:
    Aug 11, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    I'm trying to install PECL Fileinfo however am recevieving an error as below and the install fails...

    PHP:
    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)
    .....
    done5,835 bytes
    3 source files
    building
    running
    phpize
    Configuring 
    for:
    PHP Api Version:         20041225
    Zend Module Api No
    :      20060613
    Zend Extension Api No
    :   220060519
    configure
    .in:158warningAC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-idmust contain _cv_ to be cached
    ../../lib/autoconf/general.m4:1973AC_CACHE_VAL is expanded from...
    ../../
    lib/autoconf/general.m4:1993AC_CACHE_CHECK is expanded from...
    aclocal.m4:3555AC_LIBTOOL_LINKER_OPTION is expanded from...
    aclocal.m4:5493_LT_AC_LANG_C_CONFIG is expanded from...
    aclocal.m4:5492AC_LIBTOOL_LANG_C_CONFIG is expanded from...
    aclocal.m4:2972AC_LIBTOOL_SETUP is expanded from...
    aclocal.m4:2952_AC_PROG_LIBTOOL is expanded from...
    aclocal.m4:2915AC_PROG_LIBTOOL is expanded from...
    configure.in:158the top level
    configure
    .in:158warningAC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-idmust contain _cv_ to be cached
    aclocal
    .m4:3510AC_LIBTOOL_COMPILER_OPTION is expanded from...
    aclocal.m4:7620AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
    configure.in:158warningAC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-idmust contain _cv_ to be cached
    aclocal
    .m4:5606_LT_AC_LANG_CXX_CONFIG is expanded from...
    aclocal.m4:5605AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
    aclocal.m4:4641_LT_AC_TAGCONFIG is expanded from...
    configure.in:158warningAC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-idmust contain _cv_ to be cached
    ../../lib/autoconf/general.m4:1973AC_CACHE_VAL is expanded from...
    ../../
    lib/autoconf/general.m4:1993AC_CACHE_CHECK is expanded from...
    aclocal.m4:3555AC_LIBTOOL_LINKER_OPTION is expanded from...
    aclocal.m4:5493_LT_AC_LANG_C_CONFIG is expanded from...
    aclocal.m4:5492AC_LIBTOOL_LANG_C_CONFIG is expanded from...
    aclocal.m4:2972AC_LIBTOOL_SETUP is expanded from...
    aclocal.m4:2952_AC_PROG_LIBTOOL is expanded from...
    aclocal.m4:2915AC_PROG_LIBTOOL is expanded from...
    configure.in:158the top level
    configure
    .in:158warningAC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-idmust contain _cv_ to be cached
    aclocal
    .m4:3510AC_LIBTOOL_COMPILER_OPTION is expanded from...
    aclocal.m4:7620AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
    configure.in:158warningAC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-idmust contain _cv_ to be cached
    aclocal
    .m4:5606_LT_AC_LANG_CXX_CONFIG is expanded from...
    aclocal.m4:5605AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
    aclocal.m4:4641_LT_AC_TAGCONFIG is expanded from...
    building in /root/tmp/pear-build-root/Fileinfo-1.0.4
    running
    : /root/tmp/pear/cache/Fileinfo-1.0.4/configure
    checking 
    for grep that handles long lines and -e... /usr/bin/grep
    checking 
    for egrep... /usr/bin/grep -E
    checking 
    for a sed that does not truncate output... /bin/sed
    checking 
    for cc... cc
    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 cc accepts 
    -g... yes
    checking 
    for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor
    ... cc -E
    checking 
    for icc... no
    checking 
    for suncc... no
    checking whether cc understands 
    -and -o together... yes
    checking 
    for system library directory... lib
    checking 
    if compiler supports -R... yes
    checking build system type
    ... i386-unknown-freebsd5.3
    checking host system type
    ... i386-unknown-freebsd5.3
    checking target system type
    ... i386-unknown-freebsd5.3
    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 -I/usr/local/include/php/ext/date/lib
    checking 
    for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20060613
    checking 
    for PHP installed headers prefix... /usr/local/include/php
    checking 
    if debug is enabled... no
    checking 
    if zts is enabled... no
    checking 
    for re2c... re2c
    checking 
    for re2c version... invalid
    configure
    WARNINGYou will need re2c 0.13.4 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... yesshared
    checking 
    for magic files in default path... not found
    configure
    errorPlease reinstall the libmagic distribution
    ERROR
    : `/root/tmp/pear/cache/Fileinfo-1.0.4/configure' failed
    The Fileinfo.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20060613
    Any suggestions on how i can get this to isntall correctly?
     
  2. lbeachmike

    lbeachmike Well-Known Member

    Joined:
    Dec 27, 2001
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Long Beach, NY
    cPanel Access Level:
    Root Administrator
    Although this post is somewhat old, it is not quite stale, because I ran into the exact same issue and sought cpanel support.

    Apparently this will not install successfully via PECL and thus requires manual installation.

    The following were provided by cpanel support -

    The below link contains easy-to-follow directions for manual installation.

    ------------

    JeffreyBarke.net » Blog Archive » Installing the Fileinfo PECL module on a Media Temple dedicated virtual (dv) server

    When you get to the part where it mentions changing /etc/php.ini you will want to edit /usr/local/lib/php.ini instead.

    ------------

    Hopefully somebody googling for the same issue might find this helpful.

    Apparently this looks to be included with php 5.3 from what I've read in my quest for answers.

    Mike
     
Loading...

Share This Page