Ad Widget

Collapse

1.4: Fails to configure with postgreSQL Support

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abi
    Member
    • Jun 2006
    • 81

    #1

    1.4: Fails to configure with postgreSQL Support

    hi,

    1.4 fails to configure with postgresql support:

    Code:
    ./configure --enable-server --with-net-snmp --with-pgsql
    [..]
    checking for pg_config... /usr/bin/pg_config
    ./configure: line 8848: test: -rf: unary operator expected
    no
    configure: error: Not found PostgreSQL library
    [2]abi@kida:~/deb/build-area/zabbix-1.4$ /usr/bin/pg_config --version
    PostgreSQL 8.2.4
  • abi
    Member
    • Jun 2006
    • 81

    #2
    Code:
    --- ax_lib_postgresql.m4.orig   2007-05-30 08:46:08.000000000 +0200
    +++ ax_lib_postgresql.m4        2007-05-30 08:46:31.000000000 +0200
    @@ -80,7 +80,7 @@
                 AC_PATH_PROG([PG_CONFIG], [pg_config], [no])
             fi
     
    -        if test -rf "$PG_CONFIG"; then
    +        if test -x "$PG_CONFIG"; then
                 AC_MSG_CHECKING([for PostgreSQL libraries])
     
                 POSTGRESQL_CPPFLAGS="-I`$PG_CONFIG --includedir`"
    i think this should do the job

    Comment

    • Eugene
      Member
      • Feb 2006
      • 57

      #3
      10x to abi

      It's correct patch.

      Comment

      • to6ko
        Junior Member
        Zabbix Certified Specialist
        • Jun 2007
        • 5

        #4
        This patch did not work for me

        This patch did not work for me

        zabbix-1.4

        postgres@DC:/usr/local/pgsql/bin$ ./pg_config --version
        PostgreSQL 8.2.4

        patch -p1 < pg_patch
        File to patch: ax_lib_mysql.m4
        patching file ax_lib_mysql.m4

        patch: **** malformed patch at line 10:

        Any ideas ?

        Comment

        • llama
          Junior Member
          • Mar 2005
          • 13

          #5
          Originally posted by to6ko
          This patch did not work for me

          zabbix-1.4

          postgres@DC:/usr/local/pgsql/bin$ ./pg_config --version
          PostgreSQL 8.2.4

          patch -p1 < pg_patch
          File to patch: ax_lib_mysql.m4
          patching file ax_lib_mysql.m4

          patch: **** malformed patch at line 10:

          Any ideas ?
          You are giving your pgsql version, but attempting to patch mysql files.

          This is probably where your error on the patch is occuring

          The patched worked.. and modified the correct file, but I also had to modify the configure script at line 8848.

          -- if test -rf "$PG_CONFIG"; then
          ++ if test -x "$PG_CONFIG"; then

          Then I was able to continue the compile.
          Last edited by llama; 19-06-2007, 17:24.

          Comment

          • walterg74
            Junior Member
            • Aug 2007
            • 14

            #6
            Originally posted by llama
            You are giving your pgsql version, but attempting to patch mysql files.

            This is probably where your error on the patch is occuring

            The patched worked.. and modified the correct file, but I also had to modify the configure script at line 8848.

            -- if test -rf "$PG_CONFIG"; then
            ++ if test -x "$PG_CONFIG"; then

            Then I was able to continue the compile.
            Hi, can someone please help me on this? I have the exact same problem. I am using postgreSQL 8.2.4, and I get the same error about the libraries not being found.

            However, I have no idea as to how this patching thing works

            I have tried to manualy edit the files, and changing the "-rf" for a "-x" in both the m4 file and the configure script at the indicated places, but I still have the same error... Is there something different I should do, or maybe something else I'm missing like an environment variable or something???

            P.S. I installed postgres under: /opt/pgsql

            Please help I'm stuck at this point

            Comment

            Working...