Difference between revisions of "Net-Snmp"

From CBLFS
Jump to navigationJump to search
m
Line 28: Line 28:
 
Compile the package:
 
Compile the package:
  
  export USE_ARCH=32
+
  export USE_ARCH=32 &&
 
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
 
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
Line 43: Line 43:
  
 
Compile the package:
 
Compile the package:
   
+
 
 +
  export USE_ARCH=n32 &&
 
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
 
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \
Line 52: Line 53:
  
 
  make install &&
 
  make install &&
  mv /usr/bin/net-snmp-config{-n32}
+
  mv /usr/bin/net-snmp-config{-n32} &&
 +
unset USE_ARCH
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 58: Line 60:
 
Compile the package:
 
Compile the package:
  
 +
export USE_ARCH=64 &&
 
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
 
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \
Line 67: Line 70:
 
  make install &&
 
  make install &&
 
  mv /usr/bin/net-snmp-config{,-64}
 
  mv /usr/bin/net-snmp-config{,-64}
  ln -sfv multiarch_wrapper /usr/bin/net-snmp-config
+
  ln -sfv multiarch_wrapper /usr/bin/net-snmp-config &&
 +
unset USE_ARCH

Revision as of 06:03, 13 September 2008

Download Source: http://superb-east.dl.sourceforge.net/sourceforge/net-snmp/net-snmp-5.5.tar.gz

Introduction to Net-Snmp

Simple Network Management Protocol (SNMP) is a widely used protocol for monitoring the health and welfare of network equipment (eg. routers), computer equipment and even devices like UPSs.

Project Homepage: Unknown

Dependencies

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install 

Multilib

32Bit

Compile the package:

export USE_ARCH=32 &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
./configure --prefix=/usr  &&
make

Install the package

make install &&
mv /usr/bin/net-snmp-config{,-32}
unset USE_ARCH

N32

Compile the package:

export USE_ARCH=n32 && 
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \
./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package

make install &&
mv /usr/bin/net-snmp-config{-n32} &&
unset USE_ARCH

64Bit

Compile the package:

export USE_ARCH=64 &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \
./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

make install &&
mv /usr/bin/net-snmp-config{,-64}
ln -sfv multiarch_wrapper /usr/bin/net-snmp-config &&
unset USE_ARCH
Retrieved from "?title=Net-Snmp&oldid=15107"