On Fri, Mar 12, 2010 at 09:24:27AM -0800, Sylvain Dery wrote:
> Hi,
> 
> I'm compiling net-snmp for an arm-linux embedded system.  However, when I try 
> to run the snmp daemon on the embedded system, I get:
> 
> /usr/local/sbin # ./snmpd
> -sh: ./snmpd: not found
> 
> But it is there!:
> /usr/local/sbin # ls -la ./snmpd
> -rwxr-xr-x     1 root    root   32859  Mar 10  14:40  2010  ./snmpd
> 
> Any idea what is going on?
> 

Given the size of the object my guess would be that you did

./configure <options>
make

and then copied agent/.libs/snmpd to your device. Is that so? If that is
the case then you have only the driver for the agent, you need the shared
libraries as well since they contain the actual code of the agent.

I would suggest that you do 'make install' and copy the generated tree
to your device, then you could start removing things. I do not think you
should need anything but the libraries and the binary.

Please also see http://www.net-snmp.org/wiki/index.php/FAQ:Compiling_04

/MF

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to