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 Problems

Discussion in 'General Discussion' started by cbingham, Nov 12, 2007.

  1. cbingham

    cbingham Active Member

    Joined:
    Aug 14, 2001
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Vancouver, BC, Canada
    Hey Guys,

    I have been trying to install PDFLib through PECL both from the command line and from WHM and I get the following:

    From the command line:

    [xxx@cp1sl ~]# pecl install pdflib
    downloading pdflib-2.1.4.tgz ...
    Starting to download pdflib-2.1.4.tgz (55,714 bytes)
    .............done: 55,714 bytes
    10 source files, building
    running: phpize
    Configuring for:
    PHP Api Version: 20041225
    Zend Module Api No: 20060613
    Zend Extension Api No: 220060519
    /usr/local/bin/phpize: /tmp/pear/cache/pdflib-2.1.4/build/shtool: /bin/sh: bad interpreter: Permission denied
    Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
    environment variable is set correctly and then rerun this script.

    ERROR: `phpize' failed

    From WHM:

    downloading pdflib-2.1.4.tgz ...
    Starting to download pdflib-2.1.4.tgz (55,714 bytes)
    .............done: 55,714 bytes
    10 source files, building
    running: phpize
    Configuring for:
    PHP Api Version: 20041225
    Zend Module Api No: 20060613
    Zend Extension Api No: 220060519
    1. path to pdflib installation? :

    1-1, 'all', 'abort', or Enter to continue: building in /root/tmp/pear-build-defaultuser/pdflib-2.1.4
    running: /root/tmp/pear/cache/pdflib-2.1.4/configure --with-pdflib=
    checking for egrep... grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for gcc... gcc
    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 gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking whether gcc and cc understand -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... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-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-20060613
    checking for PHP installed headers prefix... /usr/local/include/php
    checking for re2c... no
    configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
    checking for gawk... gawk
    checking for PDFlib support... yes, shared
    configure: error: pdflib.h not found! Check the path passed to --with-pdflib=. PATH should be the install prefix directory.
    ERROR: `/root/tmp/pear/cache/pdflib-2.1.4/configure --with-pdflib=' failed
    The pdflib.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20020429

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

    Does anyone know what is wrong and how I can fix it.

    I am running:

    WHM 11.11.0 cPanel 11.15.0-R17853
    RedHat Enterprise 5.1
    Apache 2.0.61
    PHP 5.2.4

    Any help would be appreciated.
     
  2. rustelekom

    rustelekom Well-Known Member
    PartnerNOC

    Joined:
    Nov 13, 2003
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    moscow
    for me it look as you have probably two problem:

    1) Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
    environment variable is set correctly and then rerun this script.
    ERROR: `phpize' failed

    maybe your autoconf package not installed or too old.

    2) The pdflib.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20020429
    which mean that pecl install extension into other location than set for php. Most likely this happen because pecl installed to wrong location.
     
  3. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    You probably have secured your /tmp, which is why PECL will fail.

    download the package, extract it to /usr/local/src install it manually with

    Code:
    phpize
    make
    make install
    then check your php.ini and change the extension path to one you prefer and also add the extension you've installed.

    That's the way I do pdo_mysql installs at least, since our /tmp isnt executable.
     
Loading...

Share This Page