Ad Widget

Collapse

Zabbix 1.4.4 + Solaris 10 (last update) + Sparc

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Canuck
    Junior Member
    • Mar 2008
    • 8

    #1

    Zabbix 1.4.4 + Solaris 10 (last update) + Sparc

    bash-3.00# ./configure --enable-server --with-pgsql --with-net-snmp --with-libcurl
    ...
    checking for curl-config... /usr/local/bin/curl-config
    checking for the version of libcurl... 7.18.0
    checking for libcurl >= version 7.13.1... yes
    checking for main in -lcurl... no
    configure: error: Not found libcurl library

    what can i do?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    You may either install libcurl and development file or compile ZABBIX without support of WEB monitoring. Libcurl is for WEB monitoring only.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Canuck
      Junior Member
      • Mar 2008
      • 8

      #3
      Originally posted by Alexei
      You may either install libcurl and development file or compile ZABBIX without support of WEB monitoring. Libcurl is for WEB monitoring only.
      libcurl то у меня установлен, а как установить development file? А бе web мониторинга как то совсем не хочется, ради него все и делается, собственно. Извиняюсь, что все на русском

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Please use English only. The libcurl development files normally come as libcurl-dev package.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • Canuck
          Junior Member
          • Mar 2008
          • 8

          #5
          Originally posted by Alexei
          Please use English only. The libcurl development files normally come as libcurl-dev package.
          i don`t find this package (libcurl-dev), please help me anybody!

          Comment

          • marcis
            Junior Member
            Zabbix Certified Specialist
            • Jul 2007
            • 17

            #6
            Zabbix 1.4.4 + Solaris 10

            Did you tried to search in Sunfreeware or Blaswave? Didn't find package wit exact name libcurl-dev, but they both definately have libcurl

            Comment

            • trikke
              Senior Member
              • Aug 2007
              • 140

              #7
              Maybe u have a similar Problem as in http://www.zabbix.com/forum/showthread.php?t=9090.

              The Problem with Solaris is often, that some libraries are in the /usr/swf/lib directory because the compiling of the "preinstalled OS" found them there.
              So setting the LD_LIBRARY_PATH is crutial, or see that u recompile libcurl (there is no libcurl-dev for Solaris ) and use only libraries out of your /usr/local/lib path.
              Always check your "binaries" with ldd to see against which libraries your "application" was compiled against.

              Hope to have helped U. ( Had a long and hard way to detect these myself )

              Comment

              • Canuck
                Junior Member
                • Mar 2008
                • 8

                #8
                Originally posted by trikke
                Maybe u have a similar Problem as in http://www.zabbix.com/forum/showthread.php?t=9090.

                The Problem with Solaris is often, that some libraries are in the /usr/swf/lib directory because the compiling of the "preinstalled OS" found them there.
                So setting the LD_LIBRARY_PATH is crutial, or see that u recompile libcurl (there is no libcurl-dev for Solaris ) and use only libraries out of your /usr/local/lib path.
                Always check your "binaries" with ldd to see against which libraries your "application" was compiled against.

                Hope to have helped U. ( Had a long and hard way to detect these myself )
                My .profile ->

                LD_LIBRARY_PATH=/usr/openwin/lib:/usr/dt/lib:/usr/lib:/etc/lib:/usr/ccs/lib:/usr/local/bin:/usr/sfw/lib:/usr/local/lib
                export LD_LIBRARY_PATH
                PATH=$PATH:/usr/sfw/bin:/usr/lib:/bin:/etc:/usr/ccs/bin:/usr/openwin/bin:/opt/bin:/usr/local/bin:/usr/local/lib:/usr/sfw/lib
                export PATH
                Last edited by Canuck; 16-03-2008, 09:21.

                Comment

                • Canuck
                  Junior Member
                  • Mar 2008
                  • 8

                  #9
                  Originally posted by Canuck
                  My .profile ->

                  LD_LIBRARY_PATH=/usr/openwin/lib:/usr/dt/lib:/usr/lib:/etc/lib:/usr/ccs/lib:/usr/local/bin:/usr/sfw/lib:/usr/local/lib
                  export LD_LIBRARY_PATH
                  PATH=$PATH:/usr/sfw/bin:/usr/lib:/bin:/etc:/usr/ccs/bin:/usr/openwin/bin:/opt/bin:/usr/local/bin:/usr/local/lib:/usr/sfw/lib
                  export PATH
                  don`t forget me!

                  Comment

                  • trikke
                    Senior Member
                    • Aug 2007
                    • 140

                    #10
                    Ok, was o holiday, so sorry for late reply.
                    Still not shure how I can help u but check for following output:

                    # /usr/local/bin/curl-config --libs
                    -L/usr/local/lib -lcurl -fPIC -L/usr/local/lib -R/usr/local/lib -R/usr/lib -L/usr/lib -R/usr/openwin/lib -L/usr/openwin/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib -L/usr/X11R6/lib -R/usr/X11R6/lib -L/usr/local/ssl/lib -lidn -lssl -lcrypto -lsocket -lnsl -lssl -lcrypto -lsocket -lnsl -ldl -lz

                    --> here u see which libs were used to compile curl

                    # ldd /usr/local/bin/curl
                    libcurl.so.4 => /usr/local/lib/libcurl.so.4
                    libidn.so.11 => /usr/local/lib/libidn.so.11
                    libintl.so.8 => /usr/local/lib/libintl.so.8
                    libiconv.so.2 => /usr/local/lib/libiconv.so.2
                    libsec.so.1 => /usr/lib/libsec.so.1
                    libc.so.1 => /usr/lib/libc.so.1
                    libssl.so.0.9.8 => /usr/local/ssl/lib/libssl.so.0.9.8
                    libcrypto.so.0.9.8 => /usr/local/ssl/lib/libcrypto.so.0.9.8
                    libsocket.so.1 => /usr/lib/libsocket.so.1
                    libnsl.so.1 => /usr/lib/libnsl.so.1
                    libdl.so.1 => /usr/lib/libdl.so.1
                    libz.so => /usr/local/lib/libz.so
                    libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
                    libavl.so.1 => /lib/libavl.so.1
                    libmp.so.2 => /lib/libmp.so.2
                    libmd.so.1 => /lib/libmd.so.1
                    libscf.so.1 => /lib/libscf.so.1
                    libdoor.so.1 => /lib/libdoor.so.1
                    libuutil.so.1 => /lib/libuutil.so.1
                    libgen.so.1 => /lib/libgen.so.1
                    libm.so.2 => /lib/libm.so.2

                    --> here u see which libs will be used by curl, those libs must exist!!!!

                    Greets
                    Patrick

                    Comment

                    • Canuck
                      Junior Member
                      • Mar 2008
                      • 8

                      #11
                      Originally posted by trikke
                      Ok, was o holiday, so sorry for late reply.
                      Still not shure how I can help u but check for following output:

                      # /usr/local/bin/curl-config --libs
                      -L/usr/local/lib -lcurl -fPIC -L/usr/local/lib -R/usr/local/lib -R/usr/lib -L/usr/lib -R/usr/openwin/lib -L/usr/openwin/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib -L/usr/X11R6/lib -R/usr/X11R6/lib -L/usr/local/ssl/lib -lidn -lssl -lcrypto -lsocket -lnsl -lssl -lcrypto -lsocket -lnsl -ldl -lz

                      --> here u see which libs were used to compile curl

                      # ldd /usr/local/bin/curl
                      libcurl.so.4 => /usr/local/lib/libcurl.so.4
                      libidn.so.11 => /usr/local/lib/libidn.so.11
                      libintl.so.8 => /usr/local/lib/libintl.so.8
                      libiconv.so.2 => /usr/local/lib/libiconv.so.2
                      libsec.so.1 => /usr/lib/libsec.so.1
                      libc.so.1 => /usr/lib/libc.so.1
                      libssl.so.0.9.8 => /usr/local/ssl/lib/libssl.so.0.9.8
                      libcrypto.so.0.9.8 => /usr/local/ssl/lib/libcrypto.so.0.9.8
                      libsocket.so.1 => /usr/lib/libsocket.so.1
                      libnsl.so.1 => /usr/lib/libnsl.so.1
                      libdl.so.1 => /usr/lib/libdl.so.1
                      libz.so => /usr/local/lib/libz.so
                      libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
                      libavl.so.1 => /lib/libavl.so.1
                      libmp.so.2 => /lib/libmp.so.2
                      libmd.so.1 => /lib/libmd.so.1
                      libscf.so.1 => /lib/libscf.so.1
                      libdoor.so.1 => /lib/libdoor.so.1
                      libuutil.so.1 => /lib/libuutil.so.1
                      libgen.so.1 => /lib/libgen.so.1
                      libm.so.2 => /lib/libm.so.2

                      --> here u see which libs will be used by curl, those libs must exist!!!!

                      Greets
                      Patrick

                      THANK YOU VERY VERY VERY MUCH!!!

                      Comment

                      • Canuck
                        Junior Member
                        • Mar 2008
                        • 8

                        #12
                        new problem

                        make install

                        ....
                        local_target="$target"; \
                        fi; \
                        (cd $subdir && make $local_target) \
                        || eval $failcom; \
                        done; \
                        if test "$dot_seen" = "no"; then \
                        make "$target-am" || exit 1; \
                        fi; test -z "$fail"
                        make: Fatal error: Command failed for target `install-recursive'

                        my not-root user .profile:

                        LD_LIBRARY_PATH=/usr/openwin/lib:/usr/dt/lib:/usr/lib:/etc/lib:/usr/ccs/lib:/usr/sfw/lib:/usr/local/lib
                        export LD_LIBRARY_PATH
                        PATH=$PATH:/bin:/etc:/usr/ccs/bin:/usr/openwin/bin:/opt/bin:/usr/local/bin:/usr/sfw/bin
                        export PATH

                        Comment

                        Working...