IMGate

 Home

 Introduction

 Requirements

 Get Files

 Library Compilation

 MRTG Compilation

 Postfix MRTG Files

 Editing Crontab

 Running Postfix MRTG

 Running at Startup

 Credits

 Extras

 

Library Compilation

The first thing we have to do is install the library files for the MRTG.

Make a directory "/usr/local/src" then go there.

mkdir -p /usr/local/src
cd /usr/local/src

Copy or move your library files into this directory.


Install zlib

1) First un-tar the zlib file.

gunzip -c zlib.tar.gz | tar xf -

2) Next rename the directory that was created to "/zlib" This make things easier in the long run. I hate typing.

mv zlib-?.?.?/ zlib

3) Change directory to zlib

cd zlib

4) Now we need to configure the binaries.

./configure

5) Now we can install it, just type:

make

6) Now you can get back to the /usr/local/src directory

cd ..


Install libpng

gunzip -c libpng-1.0.8.tar.gz |tar xf -
mv libpng-1.0.8 libpng
cd libpng
make -f scripts/makefile.std CC=gcc ZLIBLIB=../zlib ZLIBINC=../zlib
rm *.so.* *.so
cd ..


Install gd

gunzip -c gd-1.8.3.tar.gz |tar xf -
mv gd-1.8.3 gd
cd gd

You have a long line below. The " \ " means it should all be on the same line.

make INCLUDEDIRS="-I. -I../zlib -I../libpng" \
LIBDIRS="-L../zlib -L. -L../libpng" \

LIBS="-lgd -lpng -lz -lm"
cd ..

 

 

 
Copyright © 2000 - THE MATTCAVE Online - All Rights Reserved