welcome: please sign in
location: MonitoringPlugins

Build a statically linked monitoring-plugins or nagios-plugins. This is an example on CentOS 6.

   1 # prepare system, install glibc-static:
   2 yum install glibc-static.x86_64 # glibc-static.i686 # for multiarch
   3 
   4 # 1st build openssl static lib, or use system package openssl-static
   5 cd /path/to/openssl
   6 ./Configure linux-x86-64 --prefix=/path/to/build/openssl
   7 make -j24 && make -j24 install
   8 
   9 # (Optional) re-generate libtool
  10 cd /path/to/monitoring-plugins
  11 # autoreconf -fi
  12 
  13 # build the binaries
  14 ./configure --prefix=/path/to/build/monitoring-plugins --with-openssl=/path/to/build/openssl --disable-shared --enable-static CFLAGS="-static"
  15 make LDFLAGS="-all-static -L/path/to/build/openssl/lib" -j24
  16 make -j24 install

MonitoringPlugins (last edited 2019-10-15 06:15:27 by AstroProfundis)

How many stars in your bowl, How many sorrows in your soul?
CopyRight © 2011-2021 Allen Zhong, under a CC BY-NC-ND 4.0 License.