Cookbook: MRTG 2.14 on Mac OS X 10.4 (Tiger) ¬
2006-10-31
Note: This cookbook is based on building MRTG 2.14.7 on Mac OS X 10.4.8 (Tiger) client as of October 31st, 2006. It should work for Tiger Server as well, but you’ll want to check to see if libpng is pre-installed or not.
Disclaimer
This cookbook is intended for those that are atleast slightly familiar with building and configuring unix applications on Mac OS X and Mac OS X Server. No support is offered and the author is not responsible for any lost data due to following these steps or mistakes made while attempting to follow these steps.
With that in mind, these steps did work for the author and will provide a quick copy & paste solution for those that don’t want to waste ten minutes figuring out that the --without-fontconfig
flag needs to be set when running configure
for gd
.
Reference
- http://oss.oetiker.ch/mrtg/
- http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html
- http://www.libpng.org/pub/png/libpng.html
- http://www.boutell.com/gd/
- http://www.stepwise.com/Articles/Workbench/2001-11-13.01.html
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.
Download This Cookbook as Text:
Cookbook – MRTG 2.14 on Mac OS X 10.4 (Tiger).txt – 2006-10-31
Commenting is closed for this article.