I did run make install, and copied everything but the many .h files (I had to 
remove the .h file since the target is limited in disk spave).

Here is the script I am using to run the install command:

MAKELEVEL=3
GATEWAY_COMPILATION_PLATFORM=arm
MFLAGS=-w
MAKEFLAGS=w
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
CFLAGS="-v -W -Wall -fPIC -mcpu=ep9312 -mfix-crunch-d1 -Wno-deprecated 
-DUSE_PTHREADS -MMD -DCML_VERSION_RELEASE -DVOCAL_USE_DEPRECATED"
CPPFLAGS="-v -W -Wall -fPIC -mcpu=ep9312 -mfix-crunch-d1 -Wno-deprecated 
-DUSE_PTHREADS -MMD -DCML_VERSION_RELEASE -DVOCAL_USE_DEPRECATED"
CONFIGURE_ARGS="--target=arm-linux --host=i686-linux"
export CONFIGURE_ARGS
export CPPFLAGS
export CFLAGS
export LD_LIBRARY_PATH
export MAKELEVEL
export GATEWAY_COMPILATION_PLATFORM
export MFLAGS
export MAKEFLAGS


./configure --host=arm-linux --target=arm-linux 
--with-cc=/usr/local/arm/ep93xx-d1/bin/arm-linux-gcc --disable-applications 
--disable-manuals --disable-scripts --disable-snmpv1 --disable-privacy 
--disable-md5 --without-openssl --enable-mini-agent 
--with-out-mib-modules="examples/ucdDemoPublic" 
--with-persistent-directory="/var/net-snmp" --with-logfile="/var/log/snmpd.log" 
--with-sys-location="Hull" --with-sys-contact="[email protected]" 
--with-default-snmp-version="2" 
--with-install-prefix="/home/sylvain/Download/net-snmp-5.5/ARG-temp-install" 
--with-ldflags=-Bstatic
 




________________________________
From: Magnus Fromreide <[email protected]>
To: Sylvain Dery <[email protected]>
Cc: [email protected]
Sent: Fri, March 12, 2010 1:41:22 PM
Subject: Re: snmpd: not found

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



      __________________________________________________________________
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot 
with the All-new Yahoo! Mail.  Click on Options in Mail and switch to New Mail 
today or register for free at http://mail.yahoo.ca
------------------------------------------------------------------------------
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