Ad Widget

Collapse

Installation zabbix-2.0.0rc1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zalloc
    Junior Member
    • Mar 2012
    • 8

    #1

    Installation zabbix-2.0.0rc1

    Hi,
    I had a problem during installation of zabbix-2.0.0rc1 on Red Hat Enterprise Linux AS release 3 (Taroon Update 5).
    I'm able to configure without error, but during make install I riceived the following error:

    Making install in escalator
    make[3]: Entering directory `/home/user/zabbix-2.0.0rc1/src/zabbix_server/escalator'
    gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I/app/mysql/include -mcpu=pentiumpro -MT escalator.o -MD -MP -MF .deps/escalator.Tpo -c -o escalator.o escalator.c
    escalator.c:422:1: directives may not be used inside a macro argument
    escalator.c:421:33: unterminated argument list invoking macro "DBselect"
    escalator.c: In function `execute_commands':
    escalator.c:451: `DBselect' undeclared (first use in this function)
    escalator.c:451: (Each undeclared identifier is reported only once
    escalator.c:451: for each function it appears in.)
    escalator.c:451: syntax error before string constant
    make[3]: *** [escalator.o] Error 1
    make[3]: Leaving directory `/home/user/zabbix-2.0.0rc1/src/zabbix_server/escalator'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/home/user/zabbix-2.0.0rc1/src/zabbix_server'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/home/user/zabbix-2.0.0rc1/src'

    Any ideas?
  • Cimba
    Junior Member
    • Mar 2012
    • 8

    #2
    Hi,

    Did you make the configure and make install with root user ?

    You have to do create a zabbix user but configure and make install has to be made with root user.
    It looks like a permission issue.

    Comment

    • Cimba
      Junior Member
      • Mar 2012
      • 8

      #3
      Hi,

      Did you make the configure and make install with root user ?

      You have to do create a zabbix user but configure and make install has to be made with root user.
      It looks like a permission issue.

      Comment

      • dimir
        Zabbix developer
        • Apr 2011
        • 1080

        #4
        Could you show your configure line please?

        Comment

        • dimir
          Zabbix developer
          • Apr 2011
          • 1080

          #5
          Also the output of 'gcc -v'

          Comment

          • zalloc
            Junior Member
            • Mar 2012
            • 8

            #6
            make running as root:

            Making all in escalator
            make[3]: Entering directory `/home/user/zabbix-2.0.0rc1/src/zabbix_server/escalator'
            gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I/app/mysql/include -mcpu=pentiumpro -I/home/user/iksemel-1.4/include -I/usr/local/include -I/usr/include/gdbm -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -I/usr/local/ssl/include -I. -I/usr/local/include -MT escalator.o -MD -MP -MF .deps/escalator.Tpo -c -o escalator.o escalator.c
            escalator.c:422:1: directives may not be used inside a macro argument
            escalator.c:421:33: unterminated argument list invoking macro "DBselect"
            escalator.c: In function `execute_commands':
            escalator.c:451: `DBselect' undeclared (first use in this function)
            escalator.c:451: (Each undeclared identifier is reported only once
            escalator.c:451: for each function it appears in.)
            escalator.c:451: syntax error before string constant
            make[3]: *** [escalator.o] Error 1
            make[3]: Leaving directory `/home/user/zabbix-2.0.0rc1/src/zabbix_server/escalator'
            make[2]: *** [all-recursive] Error 1
            make[2]: Leaving directory `/home/user/zabbix-2.0.0rc1/src/zabbix_server'
            make[1]: *** [all-recursive] Error 1
            make[1]: Leaving directory `/home/user/zabbix-2.0.0rc1/src'
            make: *** [all-recursive] Error 1
            root@server:/home/user/zabbix-2.0.0rc1#
            root@server:/home/user/zabbix-2.0.0rc1#
            root@server:/home/user/zabbix-2.0.0rc1#

            Here output of gcc -v:

            root@server:/home/user/zabbix-2.0.0rc1# gcc -v
            Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
            Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
            Thread model: posix
            gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-59)

            Comment

            • zalloc
              Junior Member
              • Mar 2012
              • 8

              #7
              Here configure command:

              ./configure --enable-server --enable-agent --with-mysql=/opt/mysql/bin/mysql_config --with-net-snmp --with-jabber=/home/user/iksemel-1.4 --with-libcurl --prefix=/opt/zabbix

              Comment

              • dimir
                Zabbix developer
                • Apr 2011
                • 1080

                #8
                Seems the problem is your gcc (cpp) version. In 3.2 the directives within a macro were rejected:



                Any chance to upgrade your compiler to a version 3.3 or higher?

                Comment

                • zalloc
                  Junior Member
                  • Mar 2012
                  • 8

                  #9
                  Hi Dimir,
                  I had updated gcc package from previous version to gcc-3.3.4 and now make install work perfectly!
                  Thank u so much.

                  Comment

                  Working...