Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Install pdo_pgsql

Discussion in 'General Discussion' started by camposomar, Aug 13, 2009.

  1. camposomar

    camposomar Active Member
    PartnerNOC

    Joined:
    Mar 30, 2009
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    Guadalajara
    i try install pdo_pgsql but return this message:

    root@local [/]# pecl install pdo_pgsql
    WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
    downloading PDO_PGSQL-1.0.2.tgz ...
    Starting to download PDO_PGSQL-1.0.2.tgz (14,961 bytes)
    .....done: 14,961 bytes
    downloading PDO-1.0.3.tgz ...
    Starting to download PDO-1.0.3.tgz (52,613 bytes)
    ...done: 52,613 bytes
    12 source files, building
    running: phpize
    Configuring for:
    PHP Api Version: 20041225
    Zend Module Api No: 20060613
    Zend Extension Api No: 220060519
    building in /var/tmp/pear-build-root/PDO-1.0.3
    running: /root/tmp/pear/PDO/configure
    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... configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details.
    ERROR: `/root/tmp/pear/PDO/configure' failed
    7 source files, building
    running: phpize
    Configuring for:
    PHP Api Version: 20041225
    Zend Module Api No: 20060613
    Zend Extension Api No: 220060519
    building in /var/tmp/pear-build-root/PDO_PGSQL-1.0.2
    running: /root/tmp/pear/PDO_PGSQL/configure
    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... configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details.
    ERROR: `/root/tmp/pear/PDO_PGSQL/configure' failed
    root@local [/]#

    permissions:
    in root/
    drwxrwxrwx 3 0 0 4.0K Jul 15 15:27 tmp/

    something idea?
    :(
     
  2. logicsupport

    logicsupport Well-Known Member

    Joined:
    Jun 5, 2007
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    166
    You might have secured your /tmp . Can you paste the output of

    cat /etc/fstab | grep tmp


    I would say , download the package and extract it to another location such as /usr/local/src and install it manually using ./configure

    Change extension path in php.ini .
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. asiams

    asiams Well-Known Member

    Joined:
    May 28, 2003
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Hokkaido, JAPAN
    PDO_PGSQL is not working after apache rebuild

    Hello,

    I had PDO_PGSQL installed under php5.2.1, after I rebuild apache with php5.2.12, this function is not working.

    I was trying to reinstall, but it says it is already installed.

    I located the files, but they are all under php5.2.1 directory.

    Now how can I make this work under php5.2.12?

    Thanks.
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,554
    Likes Received:
    9
    Trophy Points:
    168
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    There should not be a specific directory for PHP 5.2.1; what method was used to originally install pdo_pgsql for PHP?

    I would try installing pdo_pgsql via the Modules Installer in WHM.
    WHM: Main >> Software >> Module Installers >> PHP Pecl
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice