Ad Widget

Collapse

Compiling 2.0.1 agent from source under linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeefoo
    Junior Member
    • Jul 2012
    • 1

    #1

    Compiling 2.0.1 agent from source under linux

    Hi all,

    Used OS's: fedora 17 64bit, centos 6.2 64 and i686.

    I would like to compile zabbix agent from zabbix-2.0.1 source.

    If I run ./configure --enable-agent the things goes well, and it end with a successful compilation.

    I need to build with static libraries, so if I run

    ./configure --enable-agent --enable-static I get the following error:

    checking for file /proc/net/dev... yes
    checking for long long format... no
    checking for -rdynamic linking option... yes
    checking for ICONV support... configure: error: Unable to find iconv.h "no"

    Even I try to compile as a user or root the result is the same.

    The missing iconv.h file is exist in /usr/include

    I tried to set LIBRARY_PATH and LD_LIBRARY_PATH to /usr/include, but it not helped.

    What did I wrong? - Thanks for your reply:

    Balazs Huvely
  • 0siris
    Member
    Zabbix Certified Specialist
    • Nov 2010
    • 76

    #2
    and if you run this before compiling:
    export path=/usr/include:$PATH
    ?

    Comment

    • dakol
      Member
      • Jan 2008
      • 50

      #3
      Originally posted by jeefoo
      Hi all,
      checking for ICONV support... configure: error: Unable to find iconv.h "no"
      look at the file config.log which should contains the failed test

      Comment

      • rohit
        Junior Member
        • Apr 2011
        • 7

        #4
        Was not sure why modifying $PATH would help....but I gave it a try:

        [root@box1 zabbix-2.0.1]# find /usr/include/ -name iconv.h
        /usr/include/iconv.h

        [zabbix@box1 zabbix-2.0.1]$ echo $PATH
        /usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/zabbix/bin:/usr/include
        It failed with same error. Config.log says
        conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
        /
        Compiling agent without --enable-static works well
        I'm using RHEL 6.3 (2.6.32-279.el6.x86_64)

        -Rohit Kalsarpe
        Last edited by rohit; 31-07-2012, 17:45. Reason: adding kernel version

        Comment

        • dakol
          Member
          • Jan 2008
          • 50

          #5
          do you have libiconv-devel installed ? (or something close)

          Comment

          • rohit
            Junior Member
            • Apr 2011
            • 7

            #6
            nope...i dont have libiconv-devel installed

            Comment

            • dakol
              Member
              • Jan 2008
              • 50

              #7
              Originally posted by rohit
              nope...i dont have libiconv-devel installed
              on Redhat 5 update 5:
              $ rpm -qf /usr/include/iconv.h
              glibc-headers-2.5-76

              try install it

              Comment

              • rohit
                Junior Member
                • Apr 2011
                • 7

                #8
                I already have it.

                [root@box1 ~]# rpm -qf /usr/include/iconv.h
                glibc-headers-2.12-1.80.el6.x86_64
                [root@box1 ~]#

                Comment

                • Perec
                  Junior Member
                  • May 2012
                  • 4

                  #9
                  Have you try to install "glibc-static" ?

                  Comment

                  • vudoo
                    Junior Member
                    • Aug 2012
                    • 2

                    #10
                    Installing "glibc-static" with #yum install glibc-static seems to have fixed it for me, thank you.

                    Comment

                    Working...