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

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-02-2006
Thomas Anders
 
Posts: n/a
Default Re: Net-snmp-5.3 - error while loading shared libraries

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0