Ad Widget

Collapse

Problem to install Zabbix 1.8.6 on RHEL 5.4 with Oracle database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iam33
    Junior Member
    • Jul 2009
    • 24

    #1

    Problem to install Zabbix 1.8.6 on RHEL 5.4 with Oracle database

    Thanks in advance!

    I´m trying to install zabbix 1.8.6 on RHEL5.4 (64) with Oracle database, this DB is located in an external server, not in the same of Zabbix server. So, To conect to that DB I'll use Oracle Instant Client.

    My problem appear when I execute:

    Code:
    ./configure --prefix=/software/zabbix --enable-server --with-jabber --with-libcurl --with-net-snmp --with-openipmi --with-oracle
    Code:
    checking for Oracle OCI headers in /software/oracle/instantclient_10_2/rdbms/public... not found
    checking if Oracle support is enabled... no
    configure: error: Oracle OCI library not found
    The $ORACLE_HOME/rdmbs/public doesn´t exist, when I installed the Instant client, I unzipped the product, and there wasn´t any directory like rdmbs/public.
    I tried to create rdmbs/public and copy all files o sdk/include and the error disappeared, but now appear a new problem:

    Code:
    checking for Oracle OCI headers in /software/oracle/instantclient_10_2/rdbms/public... yes
    checking if Oracle OCI version is >= 10.0... yes
    checking for Oracle version >= 11.x to use -lnnz11 flag... no
    checking for Oracle version >= 10.x to use -lnnz10 flag... yes
    checking for Oracle OCI libraries in /software/oracle/instantclient_10_2/lib... not found
    checking if Oracle support is enabled... no
    configure: error: Oracle OCI library not found
    ¿how can I install it?

    thanks!!
    Last edited by iam33; 06-09-2011, 15:29.
  • iam33
    Junior Member
    • Jul 2009
    • 24

    #2


    I fixed by changing parameters for config, changing --with-oracle by --with-oracle-include and --with-oracle-lib :

    Code:
    ./configure --prefix=/software/zabbix --enable-server --with-jabber --with-libcurl --with-net-snmp --with-openipmi --with-oracle-include=/software/oracle/instantclient_10_2/sdk/include --with-oracle-lib=/software/oracle/instantclient_10_2
    but now I have another problem, when I execute de "make" or "make install", the console display:

    Code:
    ...
    make[1]: se ingresa al directorio `/tmp/zabbix/zabbix-1.8.6/misc'
    make[2]: se ingresa al directorio `/tmp/zabbix/zabbix-1.8.6/misc'
    make[2]: No se hace nada para `install-exec-am'.
    make[2]: No se hace nada para `install-data-am'.
    make[2]: se sale del directorio `/tmp/zabbix/zabbix-1.8.6/misc'
    make[1]: se sale del directorio `/tmp/zabbix/zabbix-1.8.6/misc'
    Making install in upgrades
    make[1]: se ingresa al directorio `/tmp/zabbix/zabbix-1.8.6/upgrades'
    make[2]: se ingresa al directorio `/tmp/zabbix/zabbix-1.8.6/upgrades'
    make[2]: No se hace nada para `install-exec-am'.
    make[2]: No se hace nada para `install-data-am'.
    make[2]: se sale del directorio `/tmp/zabbix/zabbix-1.8.6/upgrades'
    make[1]: se sale del directorio `/tmp/zabbix/zabbix-1.8.6/upgrades'
    make[1]: se ingresa al directorio `/tmp/zabbix/zabbix-1.8.6'
    make[2]: se ingresa al directorio `/tmp/zabbix/zabbix-1.8.6'
    make[2]: No se hace nada para `install-exec-am'.
    make[2]: No se hace nada para `install-data-am'.
    make[2]: se sale del directorio `/tmp/zabbix/zabbix-1.8.6'
    make[1]: se sale del directorio `/tmp/zabbix/zabbix-1.8.6'
    ...

    I have:

    Oracle Client: /software/oracle/instantclient_10_2
    Zabbix home(place where I want install soft): /software/zabbix
    Zabbix "installer": /tmp/zabbix/zabbix-1.8.6

    NOTE: when I ktry to do "make install" on /software/zabbix create 2 dirs sbin and share:

    Code:
    ls -ltr /software/zabbix/sbin/
    total 1772
    -rwxr-xr-x 1 root root 1810370 sep  6 11:07 zabbix_server
    
    
    ls -ltr /software/zabbix/share/man/man1/
    total 0
    
    ls -ltr /software/zabbix/share/man/man8/
    total 4
    -rw-r--r-- 1 root root 1071 sep  6 11:07 zabbix_server.8
    there´s no more files and folder there,.....




    What do I am doing bad?

    Please HELP ME!!!!!!
    Attached Files
    Last edited by iam33; 06-09-2011, 15:28.

    Comment

    • Italo Fernando Lopes
      Member
      • Feb 2011
      • 58

      #3
      Originally posted by iam33


      I fixed by changing parameters for config, changing --with-oracle by --with-oracle-include and --with-oracle-lib :

      Code:
      ./configure --prefix=/software/zabbix --enable-server --with-jabber --with-libcurl --with-net-snmp --with-openipmi --with-oracle-include=/software/oracle/instantclient_10_2/sdk/include --with-oracle-lib=/software/oracle/instantclient_10_2
      but now I have another problem, when I execute de "make" or "make install", the console display:

      Code:
      ...
      make[1]: se ingresa al directorio `/tmp/zabbix/zabbix-1.8.6/misc'
      make[2]: se ingresa al directorio `/tmp/zabbix/zabbix-1.8.6/misc'
      make[2]: No se hace nada para `install-exec-am'.
      make[2]: No se hace nada para `install-data-am'.
      make[2]: se sale del directorio `/tmp/zabbix/zabbix-1.8.6/misc'
      make[1]: se sale del directorio `/tmp/zabbix/zabbix-1.8.6/misc'
      Making install in upgrades
      make[1]: se ingresa al directorio `/tmp/zabbix/zabbix-1.8.6/upgrades'
      make[2]: se ingresa al directorio `/tmp/zabbix/zabbix-1.8.6/upgrades'
      make[2]: No se hace nada para `install-exec-am'.
      make[2]: No se hace nada para `install-data-am'.
      make[2]: se sale del directorio `/tmp/zabbix/zabbix-1.8.6/upgrades'
      make[1]: se sale del directorio `/tmp/zabbix/zabbix-1.8.6/upgrades'
      make[1]: se ingresa al directorio `/tmp/zabbix/zabbix-1.8.6'
      make[2]: se ingresa al directorio `/tmp/zabbix/zabbix-1.8.6'
      make[2]: No se hace nada para `install-exec-am'.
      make[2]: No se hace nada para `install-data-am'.
      make[2]: se sale del directorio `/tmp/zabbix/zabbix-1.8.6'
      make[1]: se sale del directorio `/tmp/zabbix/zabbix-1.8.6'
      ...

      I have:

      Oracle Client: /software/oracle/instantclient_10_2
      Zabbix home(place where I want install soft): /software/zabbix
      Zabbix "installer": /tmp/zabbix/zabbix-1.8.6

      NOTE: when I ktry to do "make install" on /software/zabbix create 2 dirs sbin and share:

      Code:
      ls -ltr /software/zabbix/sbin/
      total 1772
      -rwxr-xr-x 1 root root 1810370 sep  6 11:07 zabbix_server
      
      
      ls -ltr /software/zabbix/share/man/man1/
      total 0
      
      ls -ltr /software/zabbix/share/man/man8/
      total 4
      -rw-r--r-- 1 root root 1071 sep  6 11:07 zabbix_server.8
      there´s no more files and folder there,.....




      What do I am doing bad?

      Please HELP ME!!!!!!

      Try to compile this way.

      . / Configure --prefix=/software/zabbix - enable-server -enable-agent - with-jabber - with-libcurl - with-net-snmp - with-openipmi - with-oracle=/software/oracle/instantclient_10_2


      If you can not please let me know.
      I spent at least issue

      Comment

      • iam33
        Junior Member
        • Jul 2009
        • 24

        #4
        first of all thanks!

        I have tried with your string:

        Code:
        ./configure --prefix=/software/zabbix --enable-server --enable-agent --with-jabber --with-libcurl --with-net-snmp --with-openipmi --with-oracle=/software/oracle/instantclient_10_2
        but I´ve needed to group all oracle libraries on:

        /software/oracle/instantclient_10_2/lib

        and I´ve renamed the dir:

        /software/oracle/instantclient_10_2/sdk/include to /software/oracle/instantclient_10_2/rdbms/public, because the configure displays:

        So, with these changes, I compiled but continue appearing errors y config.log and the "make install", but in /software/zabbix It´s created the next structure of dirs and files:

        Code:
        ls -ltr /software/zabbix/*
        /software/zabbix/bin:
        total 464
        -rwxr-xr-x 1 root root 249808 sep  7 12:34 zabbix_sender
        -rwxr-xr-x 1 root root 213912 sep  7 12:34 zabbix_get
        
        /software/zabbix/share:
        total 4
        drwxr-xr-x 4 root root 4096 sep  7 12:34 man
        
        /software/zabbix/sbin:
        total 2824
        -rwxr-xr-x 1 root root  583897 sep  7 12:34 zabbix_agentd
        -rwxr-xr-x 1 root root  480569 sep  7 12:34 zabbix_agent
        -rwxr-xr-x 1 root root 1810402 sep  7 12:34 zabbix_server
        Is It correct?
        Don´t I need more files and dirs?

        Why still appear the same compilation errors in the config.log file? I would not be missing a package or library?

        Example of errors:

        Code:
        conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
        conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
        conftest.c:70:19: error: mtent.h: No such file or directory
        conftest.c:37:19: error: mtent.h: No such file or directory
        conftest.c:74:23: error: sys/pstat.h: No such file or directory
        conftest.c:41:23: error: sys/pstat.h: No such file or directory
        conftest.c:77:25: error: sys/loadavg.h: No such file or directory
        conftest.c:44:25: error: sys/loadavg.h: No such file or directory
        conftest.c:78:25: error: sys/vmmeter.h: No such file or directory
        conftest.c:45:25: error: sys/vmmeter.h: No such file or directory
        conftest.c:79:25: error: vm/vm_param.h: No such file or directory
        ...

        Comment

        • Italo Fernando Lopes
          Member
          • Feb 2011
          • 58

          #5
          Originally posted by iam33
          first of all thanks!

          I have tried with your string:

          Code:
          ./configure --prefix=/software/zabbix --enable-server --enable-agent --with-jabber --with-libcurl --with-net-snmp --with-openipmi --with-oracle=/software/oracle/instantclient_10_2
          but I´ve needed to group all oracle libraries on:

          /software/oracle/instantclient_10_2/lib

          and I´ve renamed the dir:

          /software/oracle/instantclient_10_2/sdk/include to /software/oracle/instantclient_10_2/rdbms/public, because the configure displays:

          So, with these changes, I compiled but continue appearing errors y config.log and the "make install", but in /software/zabbix It´s created the next structure of dirs and files:

          Code:
          ls -ltr /software/zabbix/*
          /software/zabbix/bin:
          total 464
          -rwxr-xr-x 1 root root 249808 sep  7 12:34 zabbix_sender
          -rwxr-xr-x 1 root root 213912 sep  7 12:34 zabbix_get
          
          /software/zabbix/share:
          total 4
          drwxr-xr-x 4 root root 4096 sep  7 12:34 man
          
          /software/zabbix/sbin:
          total 2824
          -rwxr-xr-x 1 root root  583897 sep  7 12:34 zabbix_agentd
          -rwxr-xr-x 1 root root  480569 sep  7 12:34 zabbix_agent
          -rwxr-xr-x 1 root root 1810402 sep  7 12:34 zabbix_server
          Is It correct?
          Don´t I need more files and dirs?

          Why still appear the same compilation errors in the config.log file? I would not be missing a package or library?

          Example of errors:

          Code:
          conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
          conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
          conftest.c:70:19: error: mtent.h: No such file or directory
          conftest.c:37:19: error: mtent.h: No such file or directory
          conftest.c:74:23: error: sys/pstat.h: No such file or directory
          conftest.c:41:23: error: sys/pstat.h: No such file or directory
          conftest.c:77:25: error: sys/loadavg.h: No such file or directory
          conftest.c:44:25: error: sys/loadavg.h: No such file or directory
          conftest.c:78:25: error: sys/vmmeter.h: No such file or directory
          conftest.c:45:25: error: sys/vmmeter.h: No such file or directory
          conftest.c:79:25: error: vm/vm_param.h: No such file or directory
          ...

          Good day!
          I think legally you copy everything to / etc / zabbix / and rebuild there.

          This error is not normal.
          Failing that download the package again.

          Comment

          • harishgupta111
            Member
            • Nov 2011
            • 41

            #6
            Hi

            Hi Iam33, i was also stuggling with the same oci library error and i refer your post. Its work exactly same like yours. Now i am getting below error:

            make[2]: Leaving directory `/root/dashboard-1.0/man'
            make[1]: Leaving directory `/root/dashboard-1.0/man'
            Making install in misc
            make[1]: Entering directory `/root/dashboard-1.0/misc'
            make[2]: Entering directory `/root/dashboard-1.0/misc'
            make[2]: Nothing to be done for `install-exec-am'.
            make[2]: Nothing to be done for `install-data-am'.
            make[2]: Leaving directory `/root/dashboard-1.0/misc'
            make[1]: Leaving directory `/root/dashboard-1.0/misc'
            Making install in upgrades
            make[1]: Entering directory `/root/dashboard-1.0/upgrades'
            make[2]: Entering directory `/root/dashboard-1.0/upgrades'
            make[2]: Nothing to be done for `install-exec-am'.
            make[2]: Nothing to be done for `install-data-am'.
            make[2]: Leaving directory `/root/dashboard-1.0/upgrades'
            make[1]: Leaving directory `/root/dashboard-1.0/upgrades'
            make[1]: Entering directory `/root/dashboard-1.0'
            make[2]: Entering directory `/root/dashboard-1.0'
            make[2]: Nothing to be done for `install-exec-am'.
            make[2]: Nothing to be done for `install-data-am'.
            make[2]: Leaving directory `/root/dashboard-1.0'
            make[1]: Leaving directory `/root/dashboard-1.0'
            I really appreciate if you can please share your suggestion.

            Thanks a lot.

            Comment

            • iam33
              Junior Member
              • Jul 2009
              • 24

              #7
              I haven´t could find the solution to these messages, but the plataform works without problem so I´m thinking there is not a error only a warn...

              Comment

              Working...