Hi all
I need to write an xagent and can not get the tutorial to work, any help
would be appreciated.
I downloaded the examples from
http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent
compiled the example:
[EMAIL PROTECTED] TUTORIAL]# net-snmp-config --compile-subagent mysubagent
nstAgentSubagentObject.c
generating the tmporary code file: netsnmptmp.2385.c
void init_nstAgentSubagentObject(void);
checking for init_nstAgentSubagentObject in nstAgentSubagentObject.c
init_nstAgentSubagentObject(void)
running: gcc -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -I.
-I/usr/local/include -o mysubagent netsnmptmp.2385.c
nstAgentSubagentObject.c -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent
-lnetsnmphelpers -lnetsnmp -ldl -lrpm -lrpmio -lpopt -lz -lcrypto -lm
-Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.
a -L/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -lperl -lresolv
-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
removing the tmporary code file: netsnmptmp.2385.c
subagent program mysubagent created
and when I run the subagent, I get .
[EMAIL PROTECTED] TUTORIAL]# ./mysubagent
./mysubagent: error while loading shared libraries: libnetsnmpmibs.so.15:
cannot open shared object file: No such file or directory
I have check all of the library dependencies with ldd and everything seems
to be available.
thanks
ken carpenter
[EMAIL PROTECTED]
-------------------------------------------------------------------------
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-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