Project

General

Profile

Instructions for installing net-snmp v5 7 2 under ups using GCC 4 7 1

  • su products
  • source /uboone/setup
  • mkdir -p /uboone/netsnmp/v5_7_2/Linux64bit+2.6-2.12-GCC_4_7_1
  • cd /data/scratch/products/install/GCC_4_7_1
  • mkdir netsnmp
  • cd netsnmp
  • tar -zxvf net-snmp-5.7.2.tar.gz
  • cd net-snmp-5.7.2
  • setup perl v5_8 -q GCC_4_7_1
    (also sets up gcc 4.7.1)
  • ./configure --prefix=/uboone/netsnmp/v5_7_2/Linux64bit+2.6-2.12-GCC_4_7_1 --with-default-snmp-version="2" --with-sys-contact="" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --with-sys-location="DAB Annex" --with-perl-modules CFLAGS="-O3 -fPIC"
( you can modify the following settings accordingly:
--with-sys-contact="@@no.where" // for a contact person
--with-sys-location="DAB Annex" // location of your hardware to work with net-snmp
)
  • make >& make.log &
  • make install

Return to the ups directory to complete the installation.

  • cd /uboone/netsnmp/v5_7_2
  • mkdir ups
  • cd ups
(create the netsnmp.table)
File    = table
Product = netsnmp

# ------------------------------------------
Group:

  Flavor        = ANY
  Qualifiers    = "" 

  Action = ExtraSetup

  Flavor        = ANY
  Qualifiers    = GCC_4_7_1

  Action = ExtraSetup
    setupRequired( gcc v4_7_1 )
    setupRequired( perl v5_8 -q GCC_4_7_1 )

Common:

  Action = setup

    setupEnv()
    prodDir()
    prodDir(_LIB, lib)
    prodDir(_INC, include)
    pathPrepend(PATH, ${UPS_PROD_DIR}/sbin)
    pathPrepend(PATH, ${UPS_PROD_DIR}/bin)

    envPrepend(LD_LIBRARY_PATH, ${UPS_PROD_DIR}/Linux64bit+2.6-2.12-GCC_4_7_1/lib)

    exeActionRequired(ExtraSetup)

End:
* ups declare -f Linux64bit+2.6-2.12 -q GCC_4_7_1 -r /uboone/netsnmp/v5_7_2/Linux64bit+2.6-2.12-GCC_4_7_1 -M /uboone/netsnmp/v5_7_2/ups -m netsnmp.table netsnmp v5_7_2