Re: libsensors.so.1 => not found

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/1/20 PoWah Wong <[email protected]>:
> I had "libsensors.so.1 => not found" error for snmpd.
> The system had lm_sensors-2.8.6-1rh so
> how to make the snmpd depend on that?

> # ls -l /usr/local/lib/libsensors*
> lrwxrwxrwx    1 root     root           19 Jan 16 16:56 /usr/local/lib/libsensors.so.3 -> libsensors.so.3.0.4
> -rwxr-xr-x    1 root     root       143447 Jan 25  2007 /usr/local/lib/libsensors.so.3.0.4


Did you compile the agent yourself, or install a pre-compiled version?
The build environment doesn't look for a specific version of the
sensors library.
It will compile the agent to use whatever version was present at the time.

If you subsequenty replace this library with a newer version
(or move the agent binaries to another system which has a newer version
of the library), then it will complain.


You should either recompile the agent on the same system that you
want to run it on (so it picks up the correct version of these libraries)
or install a newer version of the agent.

Or as a rough-and-ready workaround, try
   ln -s  /usr/local/lib/libsensors.so.3.0.4  /usr/local/lib/libsensors.so.1


> A better solution may be to get rid of the dependency of snmpd on lm_sensors.
> How to do that?

Re-run configure using '--with-out-mib-modules=ucd-snmp/lmSensors'
and recompile the agent.


Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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.