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.

Installing PHP Pecl "mdbtools" failed

Discussion in 'General Discussion' started by jpswade, May 12, 2013.

  1. jpswade

    jpswade Member

    Joined:
    Jun 8, 2012
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Tried to install mdbtools through WHM "Module Installers", this is the result:

    Installing PHP Pecl "mdbtools"

    Code:
    downloading mdbtools-1.0.0.tgz ...
    Starting to download mdbtools-1.0.0.tgz (8,783 bytes)
    .....done: 8,783 bytes
    5 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20090626
    Zend Module Api No:      20090626
    Zend Extension Api No:   220090626
    mdbtools installation directory? [autodetect] : building in /root/tmp/pear/pear-build-root228p2R/mdbtools-1.0.0
    running: /root/tmp/pear/mdbtools/configure --with-mdbtools
    checking for egrep... 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 ANSI C... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    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-20090626
    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... 0.13.5 (ok)
    checking for gawk... gawk
    checking mdbtools installation prefix... yes, shared
    checking for pkg-config... /usr/bin/pkg-config
    configure: error: "glib-2.0 not found by pkg-config"
    ERROR: `/root/tmp/pear/mdbtools/configure --with-mdbtools' failed
    The mdbtools.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20090626
    Tidying /usr/local/lib/php.ini...
    No changes
    Tidying /usr/local/cpanel/3rdparty/php/53/etc/php.ini...
    No changes
    As you can see, it fails and does not install.

    How can I get it to install correctly?

    Thanks.
     
    #1 jpswade, May 12, 2013
    Last edited by a moderator: Sep 30, 2014
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    It fails on this step configure: error: "glib-2.0 not found by pkg-config" which suggests you are missing that dependency. You might be able to resolve it by running:

    yum install glib2-devel
     
  3. luxius99

    luxius99 Member

    Joined:
    May 31, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I have follow your advice and install dependency but the error code below still showing, please advice

    Code:
    downloading mdbtools-1.0.0.tgz ...
    Starting to download mdbtools-1.0.0.tgz (8,783 bytes)
    .....done: 8,783 bytes
    5 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20100412
    Zend Module Api No:      20100525
    Zend Extension Api No:   220100525
    mdbtools installation directory? [autodetect] : building in /root/tmp/pear/pear-build-rootvIQMjB/mdbtools-1.0.0
    running: /root/tmp/pear/mdbtools/configure --with-mdbtools
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /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 -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    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-20100525
    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... no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... gawk
    checking mdbtools installation prefix... yes, shared
    checking for pkg-config... /usr/bin/pkg-config
    checking for mdbtools in default path... configure: error: not found
    ERROR: `/root/tmp/pear/mdbtools/configure --with-mdbtools' failed
    The mdbtools.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20100525
    Tidying /usr/local/lib/php.ini...
    No changes
    Tidying /usr/local/cpanel/3rdparty/php/54/etc/php.ini...
    No changes
     
    #3 luxius99, Sep 29, 2014
    Last edited by a moderator: Sep 30, 2014
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The error message indicates that "mdbtools" is not installed. You must install mdbtools itself on the system before you install the PECL module. I believe it's available in the EPEL repo if you prefer to install it through YUM, but keep in mind that it's an unsupported action.

    Thank you.
     
Loading...

Share This Page