Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default makecpphp - is trying to compile against pgsql

    In a few previous threads it was mentioned that if you want to update the client version shown in PHPMyAdmin (my client version is 4.1.1 or something), you should run /scripts/makecpphp.

    note: my system never had postgreSQL on it in its life.

    When I ran /scripts/makecpphp it tried to detect postgreSQL. When it couldn't find it, it installed:

    rh-postgresql-libs-7.3.19-1
    rh-postgresql-devel-7.3.19-1
    rh-postgresql-server-7.3.19-1
    rh-postgresql-7.3.19-1


    Then it attempted to compile. Compile failed at the end with the following error:

    Code:
    /home/cpeasyapache/src/imap-2004g/c-client/osdep.c:268: the use of `tmpnam' is dangerous, better use `mkstemp'
    ext/pgsql/pgsql.o(.text+0x76de): In function `zif_pg_escape_bytea':
    : undefined reference to `PQfreemem'
    ext/pgsql/pgsql.o(.text+0x7754): In function `zif_pg_unescape_bytea':
    : undefined reference to `PQfreemem'
    ext/pgsql/pgsql.o(.text+0x8202): In function `zif_pg_get_notify':
    : undefined reference to `PQfreemem'
    ext/pgsql/pgsql.o(.text+0xb0e5): In function `php_pgsql_convert':
    : undefined reference to `PQfreemem'
    collect2: ld returned 1 exit status
    make: *** [sapi/cgi/php] Error 1
    !! 'make' failed with exit code '512' !!
    How does one make it not attempt to use postgreSQL?

    Mike

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The answer was easy enough.. don't know why I didn't think of it - probably because I didn't know where the file was to handle this.

    The Cpanel guys (specifically Cory) simply changed /scripts/makecpphp.profile.yaml , at the following:

    Cpanel::Easy::PHP5::Pgsql: 1

    to
    Cpanel::Easy::PHP5::Pgsql: 0

    It compiled fine and now the MySQL client in phpMyAdmin shows 5.0.27.

    Mike

    Quote Originally Posted by mtindor View Post
    In a few previous threads it was mentioned that if you want to update the client version shown in PHPMyAdmin (my client version is 4.1.1 or something), you should run /scripts/makecpphp.

    note: my system never had postgreSQL on it in its life.

    When I ran /scripts/makecpphp it tried to detect postgreSQL. When it couldn't find it, it installed:

    rh-postgresql-libs-7.3.19-1
    rh-postgresql-devel-7.3.19-1
    rh-postgresql-server-7.3.19-1
    rh-postgresql-7.3.19-1


    Then it attempted to compile. Compile failed at the end with the following error:

    Code:
    /home/cpeasyapache/src/imap-2004g/c-client/osdep.c:268: the use of `tmpnam' is dangerous, better use `mkstemp'
    ext/pgsql/pgsql.o(.text+0x76de): In function `zif_pg_escape_bytea':
    : undefined reference to `PQfreemem'
    ext/pgsql/pgsql.o(.text+0x7754): In function `zif_pg_unescape_bytea':
    : undefined reference to `PQfreemem'
    ext/pgsql/pgsql.o(.text+0x8202): In function `zif_pg_get_notify':
    : undefined reference to `PQfreemem'
    ext/pgsql/pgsql.o(.text+0xb0e5): In function `php_pgsql_convert':
    : undefined reference to `PQfreemem'
    collect2: ld returned 1 exit status
    make: *** [sapi/cgi/php] Error 1
    !! 'make' failed with exit code '512' !!
    How does one make it not attempt to use postgreSQL?

    Mike

Similar Threads & Tags
Similar threads

  1. Trouble using /scripts/makecpphp
    By hostclick in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-13-2010, 08:09 PM
  2. makecpphp and IMAP
    By Sergiu Tot in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-27-2008, 03:00 AM
  3. /script/makecpphp problem
    By csepulveda in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-11-2007, 10:07 AM
  4. What is the /scripts/makecpphp
    By Bulent Tekcan in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 11-06-2006, 04:01 AM
  5. Bug in /scripts/makecpphp
    By Webjunkie in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-29-2005, 10:16 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube