Hello all,
i use following script for download compile and install :-)
<-- Beginn -->
#!/bin/sh
SNMP_Version="5.4.1.rc";
sysLocation="Your Location";
sysContact="Your e-mail";
SourceDirectory="/install/tarballs";
#################################################################################
#
#
# Config END
#
#
#
#################################################################################
if [ ! -d "${SourceDirectory}" ];then
mkdir -p "${SourceDirectory}";
if [ $? -gt 0 ];then
echo "can't create Directory: ${SourceDirectory}";
exit;
fi;
fi;
cd "${SourceDirectory}"
if [ $? -gt 0 ];then
echo "can't change to Directory: ${SourceDirectory}";
exit;
fi;
#################################################################################
#
#
# Get the Source Version from sourceforge.org
#
#
#
#################################################################################
if [ ! -f "${SourceDirectory}/net-snmp-${SNMP_Version}.tar.gz" ];then
wget
http://switch.dl.sourceforge.net/sourceforge/net-snmp/net-snmp-${SNMP_Version}.tar.gz
if [ $? -gt 0 ];then
echo "can't download File:
${SourceDirectory}/net-snmp-${SNMP_Version}.tar.gz";
exit;
fi;
fi;
#################################################################################
#
#
# untar the downloaded package
#
#
#
#################################################################################
if [ -d ${SourceDirectory}/net-snmp-${SNMP_Version} ];then
mv "${SourceDirectory}/net-snmp-${SNMP_Version}"
"${SourceDirectory}/net-snmp-${SNMP_Version}_$$"
fi;
tar xvzf ${SourceDirectory}/net-snmp-${SNMP_Version}.tar.gz
if [ $? -gt 0 ];then
echo "can't untar: ${SourceDirectory}/net-snmp-${SNMP_Version}.tar.gz";
mv ${SourceDirectory}/net-snmp-${SNMP_Version}.tar.gz
${SourceDirectory}/net-snmp-${SNMP_Version}.tar.gz_BROKEN
exit;
fi;
cd ${SourceDirectory}/net-snmp-${SNMP_Version}
if [ $? -gt 0 ];then
echo "can't change to Directory:
${SourceDirectory}/net-snmp-${SNMP_Version}";
exit;
fi;
#################################################################################
#
#
# configure the Net-SNMP
#
#
#
#################################################################################
./configure --enable-mib-config-checking \
--enable-ucd-snmp-compatibility \
--without-rpm \
--with-mibdirs="/usr/share/snmp/mibs" \
--with-mibfiles="/usr/share/snmp/mibs/SNMPv2-SMI.txt:/usr/share/snmp/mibs/SNMPv2-TC.txt:/usr/share/snmp/mibs/NET-SNMP-MIB.txt"
\
--with-mibs="IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB:SNMPv2-SMI:SNMPv2-TC:NET-SNMP-MIB:RFC1213-MIB"
\
--with-agentx-socket="localhost:705" \
--with-logfile="/var/log/snmpd.log" \
--with-mib-modules="mibII snmpv3mibs ucd_snmp agent_mibs agentx
notification target utilities disman/event disman/schedule host ucd-snmp/diskio
examples/example examples/ucdDemoPublic ip-mib/ipv4InterfaceTable smux
ucd-snmp/extensible agent/extend" \
--prefix="/usr" \
--sysconfdir="/etc/snmp" \
--with-persistent-directory="/var/net-snmp" \
--with-sys-contact="${sysContact}" \
--with-sys-location="${sysLocation}" \
--with-default-snmp-version="2" \
--enable-testing-code \
--enable-local-smux
if [ $? -gt 0 ];then
echo "can't configure NET-SNMP";
exit;
fi;
#################################################################################
#
#
# compile the Version now with make
#
#
#
#################################################################################
make
if [ $? -gt 0 ];then
echo "can't compile NET-SNMP with make !";
exit;
fi;
#################################################################################
#
#
# test now the compiled Version
#
#
#
#################################################################################
make test
if [ $? -gt 0 ];then
echo "can't test NET-SNMP compiled with make !";
exit;
fi;
#################################################################################
#
#
# install now the compiled Version
#
#
#
#################################################################################
make install
if [ $? -gt 0 ];then
echo "can't install NET-SNMP successfully compiled with make !";
exit;
fi;
<-- FINISH -->
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag von
Dave Shield
Gesendet: Donnerstag, 5. Juli 2007 16:47
An: Need Help
Cc: [email protected]
Betreff: Re: Should "make clean" remove all ".o" and ".lo" files?
On 05/07/07, Need Help <[EMAIL PROTECTED]> wrote:
> Yes, this is how I understood Robert's explanation as well ..... however,
> after performing the following steps, I notice ".o" and ".lo" files still
> exist:
>
> 1) do fresh install of NetSNMP-v5.4
> 2) configure ....
> 3) make (results in errors being produced)
> 4) make clean
It's impossible to tell what might be happening from that description.
Can I suggest the following:
a) Unpack the NetSNMP-v5.4 archive, and cd into this directory
b) run "find . -name \*o"
(which should return nothing)
c) run configure (with whatever options are appropriate)
d) run " make 2>&1 | tee __make.log"
e) run " make clean 2>&1 | tee __clean.log"
f) run " find . -name \*o > __object.log"
Then post the three __xxx.log files (as attachments, not inline).
That would at least give sufficient information for us to see what
might be happening.
Dave
-------------------------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
-------------------------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders