rrdtool是linux系统里著名的统计绘图工具,特别是大部分的开源监控系统(nagios,ganglia,mrtg,cati)都用到它,下面是我安装rrdtool1.4.2时写的安装脚本,若是没有下载安装包的话,可以把代码里的wget打开
- mkdir /software/rrdtool
-
export BUILD_DIR=/software/rrdtool
-
export INSTALL_DIR=/usr/local/rrdtool
-
export CFLAGS="-O3 -fPIC"
-
export LDFLAGS="-Wl,--rpath -Wl,${INSTALL_DIR}/lib"
-
export PKG_CONFIG_PATH=/usr/local/rrdtool/lib/pkgconfig
-
-
cd $BUILD_DIR
-
#wget
-
tar xzvf pkg-config-0.23.tar.gz
-
cd pkg-config-0.23
-
./configure --prefix=$INSTALL_DIR
-
make
-
make install
-
-
cd $BUILD_DIR
-
#wget
-
tar xzvf freetype-2.3.5.tar.gz
-
cd freetype-2.3.5
-
./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
-
make
-
make install
-
-
cd $BUILD_DIR
-
#wget
-
tar xzvf fontconfig-2.4.2.tar.gz
-
cd fontconfig-2.4.2
-
-
./configure --prefix=$INSTALL_DIR \
-
--sysconfdir=/etc --localstatedir=/var \
-
--disable-docs --without-add-fonts \
-
--with-docdir=/usr/share/doc/fontconfig-2.4.2 && make
-
-
install -v -m644 doc/*.3 /usr/share/man/man3 &&
-
install -v -m644 doc/*.5 /usr/share/man/man5 &&
-
install -v -m755 \
-
-
-d /usr/share/doc/fontconfig-2.4.2/fontconfig-devel &&
-
install -v -m644 doc/*.{html,pdf,txt} \
-
/usr/share/doc/fontconfig-2.4.2 &&
-
install -v -m644 doc/fontconfig-devel/* \
-
/usr/share/doc/fontconfig-2.4.2/fontconfig-devel
-
-
cd $BUILD_DIR
-
#wget
-
tar xzvf pixman-0.10.0.tar.gz
-
cd pixman-0.10.0
-
./configure --prefix=$INSTALL_DIR
-
make
-
make install
-
cp pixman-1.pc /usr/lib/pkgconfig/
-
-
cd $BUILD_DIR
-
#wget
-
tar xzvf cairo-1.6.4.tar.gz
-
cd cairo-1.6.4
-
./configure --prefix=$INSTALL_DIR \
-
--enable-xlib=no \
-
--enable-xlib-render=no \
-
--enable-win32=no
-
make
-
make install
-
-
cd $BUILD_DIR
-
#wget
-
tar xzvf glib-2.15.4.tar.gz
-
cd glib-2.15.4
-
./configure --prefix=$INSTALL_DIR
-
make
-
make install
-
-
cd $BUILD_DIR
-
#wget
-
tar jxvf pango-1.21.1.tar.bz2
-
cd pango-1.21.1
-
./configure --prefix=$INSTALL_DIR --without-X
-
make
-
make install
-
-
cd $BUILD_DIR
-
#wget
-
tar zxvf intltool-0.40.6.tar.gz
-
cd intltool-0.40.6
-
./configure
-
-
make
-
make install
-
-
-
yum -y install libart_lgpl-devel tcl tcl-devel perl-XML-Parser
-
-
cd $BUILD_DIR
-
#wget
-
tar zxvf rrdtool-1.4.2.tar.gz
-
cd rrdtool-1.4.2
-
./configure --prefix=/usr/local/rrdtool --disable-tcl --disable-python --with-rrdtool=/usr/local/rrdtool/bin/rrdtool
-
make && make install
阅读(2592) | 评论(0) | 转发(0) |