rrdtool-1.2.10 的安裝

(1) 我的環境:
OS: Fedora core 4 ( without any patch )
(2) 準備的套件:
cgilib-0.5.tar.gz ( http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/libs/ )
zlib-1.2.2.tar.gz
freetype-2.1.9.tar.gz
libart_lgpl-2.3.17.tar.gz
libart_lgpl-2.3.17.tar.gz
rrdtool-1.2.10.tar.gz ( http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/ )
(3) 參考資料: rrdtool-1.2.10/doc/rrdbuild.txt
(4) 操作記錄:
# Declare
export BUILD_DIR=/tmp/rrdtool
# Install cgilib
tar zxf cgilib-0.5.tar.gz
cd cgilib-0.5
make CC=gcc CFLAGS=”-O3 -fPIC -I.”
mkdir -p $BUILD_DIR/lb/include
cp *.h $BUILD_DIR/lb/include
mkdir -p $BUILD_DIR/lb/lib
cp libcgi* $BUILD_DIR/lb/lib
cd ..
# Install zlib
tar zxf zlib-1.2.2.tar.gz
cd zlib-1.2.2
env CFLAGS=”-O3 -fPIC” ./configure –prefix=$BUILD_DIR/lb
make
make install
cd ..
# Install libpng
tar zxf libpng-1.2.8-config.tar.gz
cd libpng-1.2.8-config
env CPPFLAGS=”-I$BUILD_DIR/lb/include” LDFLAGS=”-L$BUILD_DIR/lb/lib” CFLAGS=”-O3 -fPIC” ./configure –disable-shared –prefix=$BUILD_DIR/lb
make
make install
cd ..
# Install freetype
tar zxf freetype-2.1.9.tar.gz
cd freetype-2.1.9
env CPPFLAGS=”-I$BUILD_DIR/lb/include” LDFLAGS=”-L$BUILD_DIR/lb/lib” CFLAGS=”-O3 -fPIC” ./configure –disable-shared –prefix=$BUILD_DIR/lb
make
make install
cd ..
## Install libart_lgpl
tar zxf libart_lgpl-2.3.17.tar.gz
cd libart_lgpl-2.3.17
env CFLAGS=”-O3 -fPIC” ./configure –disable-shared –prefix=$BUILD_DIR/lb
make
make install
cd ..
# Install rrdtool
tar zxf rrdtool-1.2.10
cd rrdtool-1.2.10
IR=-I$BUILD_DIR/lb/include
CPPFLAGS=”$IR $IR/libart-2.0 $IR/freetype2 $IR/libpng”
LDFLAGS=”-L$BUILD_DIR/lb/lib”
CFLAGS=-O3
export CPPFLAGS LDFLAGS CFLAGS
./configure prefix=/usr/local/rrdtool
## Configure 完後, 要看到類似底下的 訊息, 才算 ok.
———————————————-
With MMAP IO: yes
Perl Modules: perl_piped perl_shared
Perl Binary: /usr/bin/perl
Perl Version: 5.8.6
Perl Options: PREFIX=/usr/local/rrdtool LIB=/usr/local/rrdtool/lib/perl/5.8.6
Build Tcl Bindings: no
Build Python Bindings: yes
Build rrdcgi: yes
Build librrd MT: yes
———————————————-
make
make install

About the Author

發表迴響

這個網站採用 Akismet 服務減少垃圾留言。進一步瞭解 Akismet 如何處理網站訪客的留言資料

%d 位部落客按了讚: