On fre, 2007-05-25 at 22:25 +0200, Thomas Anders wrote: > Need Help wrote: > > I needed to set the LD_LIBRARY_PATH to the following so the ".so" library > > files could be found: > > > > /export/home/myname/snmp/usr/local/lib > > > > I am wondering whether it is possibel to indicate this path inside of a > > "snmpd.conf" or "snmp.conf" file somehow? > > Impossible. snmp[d].conf are read by the agent and you need > LD_LIBRARY_PATH to even run it! Rather, put it in a shell script that > starts your agent. Consult your favorite system administrator for > further advice.
Another thing Need Help could try is to give a correct --prefix argument when he builds net-snmp. That should add the necessary magic to the binaries to make them look in the right place at runtime. % readelf -d /tmp/net-snmp-install/bin/snmpwalk Dynamic section at offset 0x1d78 contains 23 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libnetsnmp.so.20] 0x00000001 (NEEDED) Shared library: [libcrypto.so.0.9.8] 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000f (RPATH) Library rpath: [/tmp/net-snmp-install/lib] ... This isn't what he asked for but I think it is what he wish to do. /MF ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
