It installed into /usr/local/bin

I ran "sudo ldconfig" and it still outputs the same error for command 
"/usr/sbin/snmpd":

“/usr/sbin/snmpd: error while loading shared libraries: libnetsnmp.so.35: 
cannot open shared object file: No such file or directory”

inside the /usr/local/lib directory are symbolic link files 
"libnetsnmpagent.so.40", "libnetsnmpmibs.so.40", and "libnetsnmp.so.40"

A solution I tried was to make symbolic links inside the /usr/local/lib for the 
respective libnetsnmpagent.so.35 that link to their respective .so.40 links

I reran "sudo ldconfig" afterwards

I then ran the command "/usr/sbin/snmpd" and the following error occurred

"/usr/sbin/snmpd: symbol lookup error: /usr/sbin/snmpd: undefined symbol: 
smux_listen_sd"





-----Original Message-----
From: Niels Baggesen <ni...@baggesen.net> 
Sent: Tuesday, July 30, 2024 2:46 PM
To: net-snmp-coders@lists.sourceforge.net
Subject: Re: libnetsnmpagent.so.35: cannot open shared object file: No such 
file or directory

Using the defaults, I would expect it to install into /usr/local/{sbin,bin} ?

You probably need to rerun ldconfig after doing the install.

/Niels

Den 30-07-2024 kl. 16:03 skrev Peter Majdalani:
> Hi,
> 
> I am currently trying to get net-snmp to work on my Ubuntu 20.04.6 
> Linux machine.
> 
> I have downloaded net-snmp 5.9.4
> I ran ./configure with all default settings I ran `make`, no errors 
> occurred I then ran `sudo make install` as root, no errors occurred
> 
> I have the following user settings in the snmpd.conf:
> `rouser linuser priv
>    createUser linuser SHA linuserpass DES linprivpass
> 
>    rw user linadmin priv
>    rw user linadmin SHA linauthpass DES linprivpass`
> 
> When I run the following command:
> 
> `snmpwalk -v 3 -u linuser -l authPriv -a SHA -A linuserpass -x DES -X 
> linprivpass localhost`
> 
> It outputs:
> “snmpwalk: Timeout”
> 
> When I run the following command:
> `/usr/sbin/snmpd`
> 
> It outputs:
> “/usr/sbin/snmpd: error while loading shared libraries: 
> libnetsnmp.so.35: cannot open shared object file: No such file or directory”
> 
> If and when I run the following command:
> `ldd /usr/sbin/snmpd`
> 
> It outputs the following:
> “linux-vdso.so.1 (0x00007ffec37ad000)
> libnetsnmpagent.so.35 => not found
> libnetsnmpmibs.so.35 => not found
> libnetsnmp.so.35 => not found
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f34d86f000) 
> /lib64/ld-linux-x86_64.so.2”
> 
> Any ideas on how to fix this?
> 
> 
> 
> _______________________________________________
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

--
Niels Baggesen -- @home -- Århus -- Denmark -- ni...@baggesen.net The purpose 
of computing is insight, not numbers  --  R W Hamming




_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to