Wednesday, 11 March 2009

installing MRTG on snow leopard

SETTING UP THE BUILD ENVIRONMENT

cd ~/Desktop/
mkdir build-mrtg2
cd build-mrtg2

BUILDING & INSTALLING LIBPNG

curl -O http://superb-east.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.12.tar.bz2
md5 libng-1.2.12.tar.bz2
tar -xjf libpng-1.2.12.tar.bz2
pushd libpng-1.2.12
./configure
make check
sudo make install
popd

BUILDING & INSTALLING GD

curl -O http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
tar -xzf gd-2.0.33.tar.gz
pushd gd-2.0.33
./configure --without-freetype --without-jpeg --without-fontconfig
make check
sudo make install
popd

BUILDING & INSTALLING MRTG:

curl -O http://oss.oetiker.ch/mrtg/pub/mrtg-2.14.7.tar.gz
md5 mrtg-2.14.7.tar.gz
tar -xzf mrtg-2.14.7.tar.gz
pushd mrtg-2.14.7
./configure --prefix=/usr/local/mrtg-2
make
sudo make install
popd

CLOSING:

That’s it, you’re done. You can delete the ~/Desktop/build-mrtg2/ directory once you’re confident that MRTG is working as intended and you won’t have to rebuild any part of it.

No comments:

Post a Comment