This is a discussion on Re: Net-snmp-5.3 - error while loading shared libraries within the SNMP Users forums, part of the Networking and Network Related category; Makavy, Erez (Erez) wrote: > I get this error when running a sub-agent: > ---------------------------------------------------------- > error while loading shared ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |