Ad Widget

Collapse

Zabbix Will Not Configure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • edlaff
    Junior Member
    • Jun 2007
    • 2

    #1

    Zabbix Will Not Configure

    Just downloaded zabbix 1.4 and I was not able to configure the source on RedHat EL4 (2.6.9-42.ELsmp kernel). Running the command "./configure –-enable-server –-enable-agent –-with-mysql –-with-net-snmp –-with-libcurl" as per the docs and some posts I found results in the following error:

    configure: WARNING: you should use --build, --host, --target
    configure: WARNING: invalid host type: –-enable-server
    configure: WARNING: you should use --build, --host, --target
    configure: WARNING: invalid host type: –-enable-agent
    configure: WARNING: you should use --build, --host, --target
    configure: WARNING: invalid host type: –-with-mysql
    configure: WARNING: you should use --build, --host, --target
    configure: WARNING: invalid host type: –-with-net-snmp
    configure: WARNING: you should use --build, --host, --target
    configure: WARNING: invalid host type: –-with-libcurl
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    configure: Configuring
    checking whether make sets $(MAKE)... (cached) yes
    checking build system type... Invalid configuration `–-enable-server': machine `–-enable' not recognized
    configure: error: /bin/sh ./config.sub –-enable-server failed

    If I add build and host info so the command looks like this "./configure --build='i686-pc-linux-gnu' --host='i686-pc-linux-gnu' –-enable-server –-enable-agent –-with-mysql –-with-net-snmp –-with-libcurl", I get the configure to work, but it ends with the following message:

    Configuration:

    Detected OS: linux-gnu
    Install path: /usr/local
    Compilation arch: linux

    Compiler: gcc
    Compiler flags: -g -O2
    Linker flags:
    Libraries: -lresolv -lnsl

    Enable server: no
    With database: no

    Enable agent: no

    That is, no server, no agent, no mysql.

    Being new to Zabbix, I thought maybe it's an issue with the version, so I wiped 1.4 and tried again with 1.1.7. I get the exact same results.

    Can anyone see what I am doing wrong? If this question is already answered in a FAQ somewhere, I apologize and please point me in the right direction.

    Thanks in advance,
    Ed.
  • edlaff
    Junior Member
    • Jun 2007
    • 2

    #2
    Bump

    Bump, hoping more people can see this and maybe someone can help me out.

    Thanks,
    Ed.

    Comment

    • Frankenstine
      Junior Member
      • Aug 2007
      • 1

      #3
      "configure: WARNING: invalid host type: –-enable-server"
      This type errors are because of copypasting options from documentation pdf. Type options by yourself, it'll help

      But I have some strange problem configuring, which I can not understand:

      Code:
      proxy:~/zabbix-1.4.1# uname -a
      Linux proxy.loc 2.6.18-028stab035.1-ovz-smp #1 SMP Wed Jun 13 21:52:27 CEST 2007 i686 GNU/Linux
      proxy:~/zabbix-1.4.1# cat /etc/debian_version 
      4.0
      proxy:~/zabbix-1.4.1# ./configure --enable-server --with-mysql --with-jabber
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for gawk... no
      checking for mawk... mawk
      checking whether make sets $(MAKE)... yes
      configure: Configuring  
      checking whether make sets $(MAKE)... (cached) yes
      checking build system type... i686-pc-linux-gnulibc1
      checking host system type... i686-pc-linux-gnulibc1
      checking for gcc... gcc
      checking for C compiler default output file name... configure: error: C compiler cannot create executable
      s                                                                                                        See `config.log' for more details.
      Here is config.log:
      Code:
      This file contains any messages produced by compilers while
      running configure, to aid debugging if configure makes a mistake.
      
      It was created by configure, which was
      generated by GNU Autoconf 2.60.  Invocation command line was
      
        $ ./configure --enable-server --with-mysql --with-jabber
      
      ## --------- ##
      ## Platform. ##
      ## --------- ##
      
      hostname = proxy.loc
      uname -m = i686
      uname -r = 2.6.18-028stab035.1-ovz-smp
      uname -s = Linux
      uname -v = #1 SMP Wed Jun 13 21:52:27 CEST 2007
      
      /usr/bin/uname -p = unknown
      /bin/uname -X     = unknown
      
      /bin/arch              = i686
      /usr/bin/arch -k       = unknown
      /usr/convex/getsysinfo = unknown
      /usr/bin/hostinfo      = unknown
      /bin/machine           = unknown
      /usr/bin/oslevel       = unknown
      /bin/universe          = unknown
      
      PATH: /usr/local/sbin
      PATH: /usr/local/bin
      PATH: /usr/sbin
      PATH: /usr/bin
      PATH: /sbin
      PATH: /bin
      PATH: /usr/bin/X11
      
      ## ----------- ##
      ## Core tests. ##
      ## ----------- ##
      
      configure:1845: checking for a BSD-compatible install
      configure:1901: result: /usr/bin/install -c
      configure:1912: checking whether build environment is sane
      configure:1955: result: yes
      configure:2020: checking for gawk
      configure:2050: result: no
      configure:2020: checking for mawk
      configure:2036: found /usr/bin/mawk
      configure:2047: result: mawk
      configure:2058: checking whether make sets $(MAKE)
      configure:2079: result: yes
      configure:2264: Configuring  
      configure:2267: checking whether make sets $(MAKE)
      configure:2288: result: yes
      configure:2307: checking build system type
      configure:2325: result: i686-pc-linux-gnulibc1
      configure:2347: checking host system type
      configure:2362: result: i686-pc-linux-gnulibc1
      configure:2433: checking for gcc
      configure:2449: found /usr/bin/gcc
      configure:2460: result: gcc
      configure:2698: checking for C compiler version
      configure:2705: gcc --version >&5
      gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
      Copyright (C) 2006 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      
      configure:2708: $? = 0
      configure:2715: gcc -v >&5
      Using built-in specs.
      Target: i486-linux-gnu
      Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
       --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=pos
      ix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
       --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu
      Thread model: posix
      gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
      configure:2718: $? = 0
      configure:2725: gcc -V >&5
      gcc: '-V' option must have argument
      configure:2728: $? = 1
      configure:2751: checking for C compiler default output file name
      configure:2778: gcc    conftest.c  >&5
      /usr/bin/ld: crt1.o: No such file: No such file or directory
      collect2: ld returned 1 exit status
      configure:2781: $? = 1
      configure: failed program was:
      | /* confdefs.h.  */
      | #define PACKAGE_NAME ""
      | #define PACKAGE_TARNAME ""
      | #define PACKAGE_VERSION ""
      | #define PACKAGE_STRING ""
      | #define PACKAGE_BUGREPORT ""
      | #define PACKAGE "zabbix"
      | #define VERSION "1.4.1"
      | /* end confdefs.h.  */
      | 
      | int
      | main ()
      | {
      | 
      |   ;
      |   return 0;
      | }
      configure:2820: error: C compiler cannot create executables
      See `config.log' for more details.
      
      ## ---------------- ##
      ## Cache variables. ##
      ## ---------------- ##
      
      ac_cv_build=i686-pc-linux-gnulibc1
      ac_cv_env_CC_set=
      ac_cv_env_CC_value=
      ac_cv_env_CFLAGS_set=
      ac_cv_env_CFLAGS_value=
      ac_cv_env_CPPFLAGS_set=
      ac_cv_env_CPPFLAGS_value=
      ac_cv_env_CPP_set=
      ac_cv_env_CPP_value=
      ac_cv_env_IKSEMEL_CFLAGS_set=
      ac_cv_env_IKSEMEL_CFLAGS_value=
      ac_cv_env_IKSEMEL_LIBS_set=
      ac_cv_env_IKSEMEL_LIBS_value=
      ac_cv_env_LDFLAGS_set=
      ac_cv_env_LDFLAGS_value=
      ac_cv_env_PKG_CONFIG_set=
      ac_cv_env_PKG_CONFIG_value=
      ac_cv_env_build_alias_set=
      ac_cv_env_build_alias_value=
      ac_cv_env_host_alias_set=
      ac_cv_env_host_alias_value=
      ac_cv_env_target_alias_set=
      ac_cv_env_target_alias_value=
      ac_cv_host=i686-pc-linux-gnulibc1
      ac_cv_path_install='/usr/bin/install -c'
      ac_cv_prog_AWK=mawk
      ac_cv_prog_ac_ct_CC=gcc
      ac_cv_prog_make_make_set=yes
      
      ## ----------------- ##
      ## Output variables. ##
      ## ----------------- ##
      
      ACLOCAL='${SHELL} /root/zabbix-1.4.1/missing --run aclocal-1.9'
      AGENT_FALSE=''
      AGENT_TRUE=''
      AMDEPBACKSLASH=''
      AMDEP_FALSE=''
      AMDEP_TRUE=''
      AMTAR='${SHELL} /root/zabbix-1.4.1/missing --run tar'
      ARCH=''
      AUTOCONF='${SHELL} /root/zabbix-1.4.1/missing --run autoconf'
      AUTOHEADER='${SHELL} /root/zabbix-1.4.1/missing --run autoheader'
      AUTOMAKE='${SHELL} /root/zabbix-1.4.1/missing --run automake-1.9'
      AWK='mawk'
      CC='gcc'
      CCDEPMODE=''
      CFLAGS=''
      CPP=''
      CPPFLAGS=''
      CYGPATH_W='echo'
      DB_CPPFLAGS=''
      DB_LDFLAGS=''
      DB_LIBS=''
      DEFS=''
      DEPDIR=''
      ECHO_C=''
      ECHO_N='-n'
      ECHO_T=''
      EGREP=''
      EXEEXT=''
      GREP=''
      IKSEMEL_CFLAGS=''
      IKSEMEL_LIBS=''
      INSTALL_DATA='${INSTALL} -m 644'
      INSTALL_PROGRAM='${INSTALL}'
      INSTALL_SCRIPT='${INSTALL}'
      INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
      JABBER_CPPFLAGS=''
      JABBER_FALSE=''
      JABBER_LDFLAGS=''
      JABBER_TRUE=''
      LDAP_CPPFLAGS=''
      LDAP_LDFLAGS=''
      LDFLAGS=''
      LIBCURL_CPPFLAGS=''
      LIBCURL_LDFLAGS=''
      LIBCURL_LIBS=''
      LIBOBJS=''
      LIBS=''
      LTLIBOBJS=''
      MAKEINFO='${SHELL} /root/zabbix-1.4.1/missing --run makeinfo'
      MYSQL_CFLAGS=''
      MYSQL_CONFIG=''
      MYSQL_LDFLAGS=''
      MYSQL_LIBS=''
      MYSQL_VERSION=''
      OBJEXT=''
      ORACLE_CPPFLAGS=''
      ORACLE_LDFLAGS=''
      PACKAGE='zabbix'
      PACKAGE_BUGREPORT=''
      PACKAGE_NAME=''
      PACKAGE_STRING=''
      PACKAGE_TARNAME=''
      PACKAGE_VERSION=''
      PATH_SEPARATOR=':'
      PG_CONFIG=''
      PKG_CONFIG=''
      POSTGRESQL_CPPFLAGS=''
      POSTGRESQL_LDFLAGS=''
      POSTGRESQL_VERSION=''
      RANLIB=''
      SERVER_FALSE=''
      SERVER_TRUE=''
      SET_MAKE=''
      SHELL='/bin/sh'
      SNMP_CFLAGS=''
      SNMP_CPPFLAGS=''
      SNMP_LDFLAGS=''
      SNMP_LIBS=''
      SQLITE3_CPPFLAGS=''
      SQLITE3_LDFLAGS=''
      SQLITE3_VERSION=''
      SQLORA8_CPPFLAGS=''
      SQLORA8_LDFLAGS=''
      STRIP=''
      VERSION='1.4.1'
      _libcurl_config=''
      _libnetsnmp_config=''
      ac_ct_CC='gcc'
      am__fastdepCC_FALSE=''
      am__fastdepCC_TRUE=''
      am__include=''
      am__leading_dot='.'
      am__quote=''
      am__tar='${AMTAR} chof - "$$tardir"'
      am__untar='${AMTAR} xf -'
      bindir='${exec_prefix}/bin'
      build='i686-pc-linux-gnulibc1'
      build_alias=''
      build_cpu='i686'
      build_os='linux-gnulibc1'
      build_vendor='pc'
      datadir='${datarootdir}'
      datarootdir='${prefix}/share'
      docdir='${datarootdir}/doc/${PACKAGE}'
      dvidir='${docdir}'
      exec_prefix='NONE'
      host='i686-pc-linux-gnulibc1'
      host_alias=''
      host_cpu='i686'
      host_os='linux-gnulibc1'
      host_vendor='pc'
      htmldir='${docdir}'
      includedir='${prefix}/include'
      infodir='${datarootdir}/info'
      install_sh='/root/zabbix-1.4.1/install-sh'
      libdir='${exec_prefix}/lib'
      libexecdir='${exec_prefix}/libexec'
      localedir='${datarootdir}/locale'
      localstatedir='${prefix}/var'
      mandir='${datarootdir}/man'
      mkdir_p='mkdir -p --'
      oldincludedir='/usr/include'
      pdfdir='${docdir}'
      prefix='NONE'
      program_transform_name='s,x,x,'
      psdir='${docdir}'
      sbindir='${exec_prefix}/sbin'
      sharedstatedir='${prefix}/com'
      sysconfdir='${prefix}/etc'
      target_alias=''
      
      ## ----------- ##
      ## confdefs.h. ##
      ## ----------- ##
      
      #define PACKAGE_NAME ""
      #define PACKAGE_TARNAME ""
      #define PACKAGE_VERSION ""
      #define PACKAGE_STRING ""
      #define PACKAGE_BUGREPORT ""
      #define PACKAGE "zabbix"
      #define VERSION "1.4.1"
      
      configure: exit 77
      root privilegies.

      Comment

      Working...