Difference between revisions of "Net-Snmp"

From CBLFS
Jump to navigationJump to search
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://superb-east.dl.sourceforge.net/sourceforge/net-snmp/net-snmp-{{Net-Snmp-Version}}.tar.gz
+
| http://sourceforge.net/projects/net-snmp/files/net-snmp/{{Net-Snmp-Version}}/net-snmp-{{Net-Snmp-Version}}.tar.gz
 
|}
 
|}
  
Line 28: Line 28:
 
Compile the package:
 
Compile the package:
  
 +
export USE_ARCH=32 &&
 
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
 
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \
+
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
 
  ./configure --prefix=/usr  &&
 
  ./configure --prefix=/usr  &&
 
  make
 
  make
Line 37: Line 38:
 
  make install &&
 
  make install &&
 
  mv /usr/bin/net-snmp-config{,-32}
 
  mv /usr/bin/net-snmp-config{,-32}
 +
unset USE_ARCH
  
 
=== N32 ===
 
=== N32 ===
  
 
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 50: 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 56: 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 65: 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
 +
 
 +
[[Category:Network Applications]]

Latest revision as of 08:00, 26 February 2010

Download Source: http://sourceforge.net/projects/net-snmp/files/net-snmp/5.5/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=19951"