On 12/07/07, Need Help <[EMAIL PROTECTED]> wrote: > Does this mean that the subagent only looks for library files in the > "/usr/local/lib" directory or is there a way to inform the subagent code to > compile using the library files located in the > "/export/home/rosent1/snmp/usr/local/lib/" directory > instead?
How are you compiling the subagent? What is the exact compilation command that is used? > Perhaps I need to update the "/etc/ld.so.conf" file and type "ldconfig" to > do this? If you've got libraries installed in this location, then I'd definitely suggest updating /etc/ld.so.conf to cover it. > I would have assumed that the libraries were only required for compilation, > but I guess I am wrong. That's right - you are wrong. The whole point of using shared libraries is that the code is not included within the application binary directly. Instead, the libraries are picked up when the application is run (and a single library can therefore be shared between two or more applications). When you compile using static libraries ( libwombat.a ), then the library code is effectively copied into the application binary, and it doesn't then need the "external" copy to run. But if you're using shared libraries, then it does. The command 'ldd' will list what shared libraries (if any) a given application binary requires, and where it will pick them up from. Dave ------------------------------------------------------------------------- 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
