Re: Net-snmp-5.3 - error while loading shared libraries

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Makavy, Erez (Erez) wrote:
> I get this error when running a sub-agent:
> ----------------------------------------------------------
> error while loading shared libraries: libnetsnmpmibs.so.10: cannot open 
> shared object file: No such file or directory
[...]
> I Installed net-snmp-5.3 to a different directory, with ./configure 
> option --prefix="/usr/local/net-snmp-5.3".

Since you've installed net-snmp to a non-default location, you need to 
tell your system loader where to find libnetsnmpmibs.so.10. Either:

a) Modify the system-wide loader configuration. On most Linux distros, 
this involves adding /usr/local/net-snmp-5.3/lib to /etc/ld.so.conf and 
running ldconfig as root. See the ldconfig(8) manual page.

b) Recompile the subagent with a hard-coded runtime library search path. 
  On Linux this usually involves adding "-Wl,-rpath 
-Wl,/usr/local/net-snmp-5.3/lib" to LDFLAGS in the Makefile (you have 
one, don't you?) for the subagent.


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.