--- In "mohit.khanna" <> wrote:
>
> I had a real tough time installing snmp on my TS-7250 board..
>
> I used the net-snmp-5.4.2.1from http://www.net-snmp.org/download.html,
> Downloaded...and built the binaries....
>
> I think building is pretty straight forward if you configure it right....in
> case come libraries are missing, u can get them from the ARM CD which comes
> with the board.
>
> This is how I configured it..
>
> export CXX=arm-unknown-linux-gnu-g++
>
> export ac_cv_func_malloc_0_nonnull=yes;
>
> ./configure --disable-snmpv2c --disable-des --disable-privacy --disable-md5
> --without-openssl --disable-manuals --disable-shared --disable-mib-loading
> --disable-embedded-perl --without-perl-modules --with-cflags=-s -static -O2
> -Dlinux --with-cc=arm-unknown-linux-gnu-gcc
> --with-ranlib=arm-unknown-linux-gnu-ranlib --with-ar=arm-unknown-linux-gnu-ar
> --with-endianness=big --with-defaults --build=i386-linux
> --host=arm-unknown-linux-gnu
> --with-install-prefix=/home/freedm/Desktop/Freedm/net-snmp-5_arm/snmp_install_dir
>
> --includedir=/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/arm-unknown-linux-gnu/include
> --with-sys-contact= -with-sys-location=3042-Eb2
> --with-logfile=/var/log/snmpd.log --with-persistent-directory=/var/net-snmp
>
>
> After configuring simple do a,
>
> make
> make install
>
> You would want to change the install prefix and path for your include dir.
> Once you have built the binaries using a cross compiler, simply copy them to
> the right place on the board and add the path of binaries in the PATH
> variable of the board.
>
> All the best.
>
> Mohit.
>
Hi Mohit,
I have followed your step, but I get error :
:~/Downloads/netsnmp-5.4.2.1-src$ sudo ./configure --disable-snmpv2c
--disable-des --disable-privacy --disable-md5 --without-openssl
--disable-manuals --disable-shared --disable-mib-loading
--disable-embedded-perl --without-perl-modules
--with-cflags=-s-static-O2-Dlinux --with-cc=arm-unknown-linux-gnu-gcc
--with-ranlib=arm-unknown-linux-gnu-ranlib --with-ar=arm-unknown-linux-gnu-ar
--with-endianness=big --with-defaults --build=i386-linux
--host=arm-unknown-linux-gnu
--with-install-prefix=/home/wawan/Downloads/netsnmp
--includedir=/usr/local/opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/arm-unknown-linux-gnu/include
--with-sys-contact= --with-sys-location=3042-Eb2
--with-logfile=/var/log/snmpd.log --with-persistent-directory=/var/net-snmp
checking what to build and install... agent apps local mibs
using default persistent mask 077
using default temporary file pattern /tmp/snmpdXXXXXX
using default AgentX socket /var/agentx/master
using default "enterprise.net-snmp"
using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."
using default notifications "NET-SNMP-MIB::netSnmpNotifications"
using OS default send buffer size for server sockets
using OS default recv buffer size for server sockets
using OS default send buffer size for client sockets
using OS default recv buffer size for client sockets
checking if I need to feed myself to ksh... no
checking for arm-unknown-linux-gnu-gcc... arm-unknown-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
do I missed something?
Br,
Wawan
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|