Ad Widget

Collapse

configure error : Not Found NET-SNMP library

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ryuma
    Junior Member
    • Jun 2012
    • 14

    #1

    configure error : Not Found NET-SNMP library

    Hi,
    I have a problem with net-snmp during the configuration,it not found the library. (RedHat 5 / 64 bits)

    ./configure --enable-server --with-postgresql --with-net-snmp=/usr/bin/net-snmp-config

    Result :
    checking for main in -lnetsnmp... no
    configure: error: Not found NET-SNMP library


    i well install net-snmp-devel and tcp_wrappers-devel (tcpd-devel) and i locate my library
    /usr/bin/net-snmp-config --libs
    -L/usr/lib64 -L/usr/lib64 -lnetsnmp -lcrypto -lm -L/usr/lib64/lib -lwrap

    ls -la /usr/lib64/libnetsnmp.*-rw-r--r-- 1 root root 1349992 Jul 22 2011 /usr/lib64/libnetsnmp.a
    lrwxrwxrwx 1 root root 20 Jun 8 12:38 /usr/lib64/libnetsnmp.so -> libnetsnmp.so.10.0.3
    lrwxrwxrwx 1 root root 20 Jun 8 11:18 /usr/lib64/libnetsnmp.so.10 -> libnetsnmp.so.10.0.3
    -rwxr-xr-x 1 root root 608712 Jul 22 2011 /usr/lib64/libnetsnmp.so.10.0.3


    I changed too CFLAGS / CPPFLAGS / LDFLAGS but i have still the same problem ...

    if someone have a idea ... i need help ^^"
  • marcherren
    Junior Member
    • Mar 2011
    • 28

    #2
    Have you installed

    net-snmp net-snmp-utils net-snmp-libs ?

    I don't know the dependencies with net-snmp-devel but check once if all of those packets are installed.

    Comment

    • ryuma
      Junior Member
      • Jun 2012
      • 14

      #3
      yes i already installed libs and utils (it's necessary for the devel)

      I have just found the solution, when i install openssl-devel package, a resolved my problem but i don't know why ...

      if someone have the same problem (REDHAT 5), install openssl-devel (dependencies :
      -keyutils-libs-devel (for krb5)
      -e2fsprogs-devel (for krb5)
      -libsepol-devel (for libselinux)
      -libselinux-devel (for krb5)
      -krb5-devel (for openssl-devel)
      -zlib-devel (for openssl-devel) )

      Don't forget : tcp_wrappers-devel ans net-snmp-devel !

      Comment

      Working...