Where is your library installed? Are you root -- did you let it install in
the default location? If not, and it's a local installation, then set the
environment variable LD_LIBRARY_PATH to wherever they are.  For example:

setenv LD_LIBRARY_PATH /home/tina/lib    (or wherever your libraries are.
note, this is for cshell)
export LD_LIBRARY_PATH=/home/tina/lib  (or wherever....this is for bash
shell)

Hope that helps.


----- Original Message ----- 
From: "Tina Agarwal" <[EMAIL PROTECTED]>
To: "net-snmp-users" <[EMAIL PROTECTED]>
Sent: Saturday, September 18, 2004 1:43 AM
Subject: not able to execute the executable for subagent!!


> Hi,
>
> I am not able to execute the executable for the subagent. I am writing,
what
> I have done in steps.
> 1)    Made a folder "testagent" in /home/tina/net-snmp-5.0.8 folder.
> 2)    Copied all the files like ==> example-demon.c, Makefile,
> nstAgentSubagentObject.c and nstAgentSubagentObject.h into "testagent"
> folder.
> 3)    run "make example-demon" into this folder. It make the executable
> "example-demon".
> 4)    Then I include "master example-demon" in
> /usr/local/share/snmp/snmpd.conf file.
> 5)    I start my agent by /home/tina/net-snmp-5.0.8/agent/snmpd -d. The
> agent gets started.
> 6)    Then I try to start my subagent by
> "/home/tina/net-snmp-5.0.8/testagent/example-demon". It gives me error::
> "/home/tina/net-snmp-5.0.8/testagent/example-demon : error while loading
> shared libraries: libnetsnmpagent.so.5 : cannot open shared object file :
No
> such file or directory"
> Why is this error coming? Am I missing something??
>
> Regards!
> Tina Agarwal
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> 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
>
>




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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

Reply via email to