RRDTool ubuntu 12.04

as root
apt-get install libpango1.0-dev libxml2-dev
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.7.tar.gz
tar -zxvf rrdtool-1.4.7.tar.gz
cd rrdtool-1.4.7
mkdir /tmp/rrdbuild
export BUILD_DIR=/tmp/rrdbuild
mkdir /opt/rrdtool-1.4.7
export INSTALL_DIR=/opt/rrdtool-1.4.7
./configure -prefix=$INSTALL_DIR
make
make install
mkdir -p /usr/local/src/php-5.3.10/ext
cd /usr/local/src/php-5.3.10/ext
wget http://oss.oetiker.ch/rrdtool/pub/contrib/php_rrdtool.tar.gz
tar -zxvf php_rrdtool.tar.gz
cd rrdtool
./configure -with-rrdtool=/opt/rrdtool-1.4.7 -with-php-config=/usr/bin/php-config
make
make install
Now edit php.ini, use find / -iname php.ini to search it and add.
extensions=rrdtool.so

 

Hessen Kasselstraat 8
5615 SM Eindhoven
phone: +316-81888456