On 10 November 2011 09:30, prashant n <[email protected]> wrote:
>      I compiled SNMP agent with MIB module
>      When i run command: /usr/local/sbin/snmpd -f -L -d -p 9999
>      it was giving follwing  error
>      /usr/local/sbin/snmpd: error while loading shared libraries:
> libnetsnmpagent.so.25: cannot open shared object file: No such file or 
> directory

If these libraries are present under /usr/local/lib,  but the agent is not
finding them, then the most likely reason is that the linker isn't actually
looking there.
   Things differ from one OS to another,  but a typical way to fix this
might be to create a file
       /etc/ld.conf.d/snmpd.conf
containing the single line
       /usr/local/lib

and then run the command "ldconfig"  (as root)


>     So i copied all the libraries in the location /usr/local/lib/ to /lib

That's an alternative workaround, yes.


> and also copied snmpd.conf to the location /usr/local/share/snmp

What is in this snmpd.conf file?

In particular, what access control entries do you have set up in it?

Dave

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to