Decrease your stress

Page 3 of 3
<font face="Courier"
# cd /export/home/pbg<br>
# gunzip mrtg.tar.gz<br>
# tar xf mrtg*<br>
# gunzip gd*<br>
# tar xf gd*<br>
# gunzip libp*<br>
# tar xf libp*<br>
# ls<br>
gd-1.8.3  <br>
libpng-1.0.8 <br>
mrtg-2.9.2      <br>               
# cd gd-1.8.3<br>
# make<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd_gd.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd_gd2.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd_io.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd_io_dp.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd_io_file.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd_ss.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd_io_ss.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd_png.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd_jpeg.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdxpm.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdfontt.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdfonts.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdfontmb.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdfontl.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdfontg.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdtables.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdttf.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdcache.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdkanji.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  wbmp.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd_wbmp.c<br>
rm -f libgd.a<br>
ar rc libgd.a gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o \<br>
     gd_io_file.o gd_ss.o gd_io_ss.o gd_png.o gd_jpeg.o gdxpm.o \<br>
     gdfontt.o gdfonts.o gdfontmb.o gdfontl.o gdfontg.o \<br>
     gdtables.o gdttf.o gdcache.o gdkanji.o wbmp.o gd_wbmp.o<br>
ranlib libgd.a<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  pngtogd.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11<br> pngtogd.o -o pngtogd     -L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib<br> -lm -lgd -lpng -lz<br> 
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  pngtogd2.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11<br> pngtogd2.o -o pngtogd2     -L. -L/usr/local/lib -L/usr/lib/X11<br> -L/usr/X11R6/lib -lm -lgd -lpng -lz<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdtopng.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11<br> gdtopng.o -o gdtopng     -L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib<br> -lm -lgd -lpng -lz<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd2topng.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11<br> gd2topng.o -o gd2topng     -L. -L/usr/local/lib -L/usr/lib/X11<br> -L/usr/X11R6/lib -lm -lgd -lpng -lz<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd2copypal.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11<br> gd2copypal.o -o gd2copypal     -L. -L/usr/local/lib -L/usr/lib/X11<br> -L/usr/X11R6/lib -lm -lgd -lpng -lz<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdparttopng.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11<br> gdparttopng.o -o gdparttopng     -L. -L/usr/local/lib -L/usr/lib/X11<br> -L/usr/X11R6/lib -lm -lgd -lpng -lz<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  webpng.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11<br> webpng.o -o webpng     -L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib<br> -lm -lgd -lpng -lz<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdtest.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11<br> gdtest.o -o gdtest     -L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib<br> -lm -lgd -lpng -lz<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gddemo.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11<br> gddemo.o -o gddemo     -L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib<br> -lm -lgd -lpng -lz<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gd2time.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11<br> gd2time.o -o gd2time     -L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib<br> -lm -lgd -lpng -lz<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -O<br>  -c  gdtestttf.c<br>
gcc -I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11<br> gdtestttf.o -o gdtestttf     -L. -L/usr/local/lib -L/usr/lib/X11<br> -L/usr/X11R6/lib -lm -lgd -lpng -lz<br>
# ls -l /usr/local
lrwxrwxrwx   1 root     other         10 Aug  3 21:50 /usr/local -> /opt/local<br>
# mkdir /opt/local/lib<br>
# mkdir /opt/local/include<br>
# make install<br>
sh ./install-item 644 libgd.a /usr/local/lib/libgd.a<br>
sh ./install-item 755 pngtogd /usr/local/bin/pngtogd<br>
sh ./install-item 755 pngtogd2 /usr/local/bin/pngtogd2<br>
sh ./install-item 755 gdtopng /usr/local/bin/gdtopng<br>
sh ./install-item 755 gd2topng /usr/local/bin/gd2topng<br>
sh ./install-item 755 gd2copypal /usr/local/bin/gd2copypal<br>
sh ./install-item 755 gdparttopng /usr/local/bin/gdparttopng<br>
sh ./install-item 755 webpng /usr/local/bin/webpng<br>
sh ./install-item 755 bdftogd /usr/local/bin/bdftogd<br>
sh ./install-item 644 gd.h /usr/local/include/gd.h<br>
sh ./install-item 644 gdcache.h /usr/local/include/gdcache.h<br>
sh ./install-item 644 gd_io.h /usr/local/include/gd_io.h<br>
sh ./install-item 644 gdfontg.h /usr/local/include/gdfontg.h<br>
sh ./install-item 644 gdfontl.h /usr/local/include/gdfontl.h<br>
sh ./install-item 644 gdfontmb.h /usr/local/include/gdfontmb.h<br>
sh ./install-item 644 gdfonts.h /usr/local/include/gdfonts.h<br>
sh ./install-item 644 gdfontt.h /usr/local/include/gdfontt.h<br>
# cd ../libpng-1.0.8<br>
# ls<br>
ANNOUNCE     configure    png.c        pngget.c     pngset.c     pngwutil.c<br>
CHANGES      contrib      png.h        pngmem.c     pngtest.c    scripts<br>
INSTALL      example.c    pngasmrd.h   pngnow.png   pngtest.png  wince<br>
KNOWNBUG     libpng.3     pngbar.jpg   pngpread.c   pngtrans.c<br>
LICENSE      libpng.txt   pngbar.png   pngread.c    pngvcrd.c<br>
README       libpngpf.3   pngconf.h    pngrio.c     pngwio.c<br>
TODO         msvc         pngerror.c   pngrtran.c   pngwrite.c<br>
Y2KINFO      png.5        pnggccrd.c   pngrutil.c   pngwtran.c<br>
# ./configure<br>
  There is no "configure" script for Libpng-1.0.8.  Instead, please<br>
  copy the appropriate makefile for your system from the "scripts"<br>
  directory.  Read the INSTALL file for more details.<br>
# ls scripts<br>
SCOPTIONS.ppc      makefile.cygwin    makefile.mips      makefile.vcawin32<br>
descrip.mms        makefile.dec       makefile.msc       makefile.vcwin32<br>
libpng.icc         makefile.dj2       makefile.os2       makefile.watcom<br>
makefile.acorn     makefile.gcc       makefile.sco<br>
makefile.amiga     makefile.gcmmx     makefile.sggcc     pngdef.pas<br>
makefile.atari     makefile.hpux      makefile.sgi       pngos2.def<br>
makefile.bc32      makefile.ibmc      makefile.solaris   smakefile.ppc<br>
makefile.bd32     makefile.std<br>
makefile.beos      makefile.knr       makefile.sunos<br>
makefile.bor       makefile.linux     makefile.tc3<br>
# cp scripts/makefile.solaris Makefile<br>
# make<br>
gcc -I/usr/local/include -Wall -O3  -c  png.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngset.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngget.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngrutil.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngtrans.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngwutil.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngread.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngrio.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngwio.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngwrite.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngrtran.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngwtran.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngmem.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngerror.c<br>
gcc -I/usr/local/include -Wall -O3  -c  pngpread.c<br>
ar rc libpng.a png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o<br>  pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o  pngwtran.o pngmem.o <br>pngerror.o pngpread.o<br>
echo libpng.a<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o png.pic.o png.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngset.pic.o pngset.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngget.pic.o pngget.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngrutil.pic.o pngrutil.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngtrans.pic.o pngtrans.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngwutil.pic.o pngwutil.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngread.pic.o pngread.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngrio.pic.o pngrio.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngwio.pic.o pngwio.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngwrite.pic.o pngwrite.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngrtran.pic.o pngrtran.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngwtran.pic.o pngwtran.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngmem.pic.o pngmem.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngerror.pic.o pngerror.c<br>
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngpread.pic.o pngpread.c<br>
ld -G -L/usr/local/lib -R/usr/local/lib -h \<br>
 -o png.pic.o pngset.pic.o pngget.pic.o pngrutil.pic.o<br>
pngtrans.pic.o pngwutil.pic.o  pngread.pic.o pngrio.pic.o pngwio.pic.o<br> pngwrite.pic.o pngrtran.pic.o  pngwtran.pic.o pngmem.pic.o pngerror.pic.o<br> pngpread.pic.o -lz<br>
ln -f -s<br>
ln -f -s<br>
gcc -I/usr/local/include -Wall -O3  -c  pngtest.c<br>
gcc -o pngtest -I/usr/local/include -Wall -O3 pngtest.o -L. -R.<br> -L/usr/local/lib -R/usr/local/lib -lpng -lz -lm<br>
# make install<br>
mkdir: Failed to make directory "/usr/local/include"; File exists<br>
mkdir: Failed to make directory "/usr/local/lib"; File exists<br>
*** Error code 2 (ignored)<br>
cp png.h pngconf.h /usr/local/include<br>
chmod 644 /usr/local/include/png.h /usr/local/include/pngconf.h<br>
cp libpng.a /usr/local/lib<br>
chmod 755 /usr/local/lib/<br>
(cd /usr/local/lib; ln -f -s; \<br>
 ln -f -s<br>
# cd ../mrtg-2.9.2<br>
# ls<br>
ANNOUNCE       MANIFEST       bin            doc            mkinstalldirs<br>
CHANGES    configure      images         src<br>
COPYING        README   install-sh     translate<br>
COPYRIGHT      THANKS         contrib        lib<br>
# #comment - make sure that /opt/local/lib is in your LD_LIBRARY_PATH<br>
# ./configure<br>
loading cache ./config.cache<br>
checking for gcc... gcc<br>
checking whether the C compiler (gcc  ) works... yes<br>
checking whether the C compiler (gcc  ) is a cross-compiler... no<br>
checking whether we are using GNU C... yes<br>
checking whether gcc accepts -g... yes<br>
checking how to run the C preprocessor... gcc -E<br>
checking whether make sets ${MAKE}... yes<br>
checking for a BSD compatible install... /opt/sfw/bin/ginstall -c<br>
checking for perl... /usr/bin/perl<br>
checking for groff... no<br>
checking for nroff... /usr/bin/nroff<br>
checking for acos in -lm... yes<br>
checking for gdImageGif in -lgd... no<br>
checking for gdImagePng in -lgd... yes<br>
checking the weather... (cached) its fine<br>
updating cache ./config.cache<br>
creating ./config.status<br>
creating Makefile<br>
ordering CD from .<br>
 just kidding ;-)<br>
Config is DONE!<br>
Type 'make' to compile the software<br>
       ... that wishlist mentioned above does really exist. So if<br>
you feel like showing your appreciation for MRTG, this is the<br>
place to go. I just love CDs and DVDs<br>
                            -- Tobi Oetiker <> <br>
# make<br>
LD_RUN_PATH= gcc -g -O2 -DGFORM_GD=gdImagePng src/rateup.c -lgd -lm -lpng -lz<br>
-lm -o bin/rateup<br>
src/rateup.c:60: gd.h: No such file or directory<br>
src/rateup.c:61: gdfonts.h: No such file or directory<br>
*** Error code 1<br>
make: Fatal error: Command failed for target `bin/rateup'<br>
# #comment - quick hack of the Makefile to search /opt/local/include <br>
# #commend - for include files and /opt/local/lib for libraries<br>
# make<br>
LD_RUN_PATH=/usr/local/lib gcc -g -O2 -DGFORM_GD=gdImagePng<br> -I/opt/local/include src/rateup.c -lgd -lm -lpng -lz -lm -o bin/rateup<br>
/usr/bin/perl -0777 -pi -e 's@^#!\s*/\S*perl@#! /usr/bin/perl@' bin/cfgmaker<br> bin/indexmaker bin/mrtg<br>
/usr/bin/perl -0777 -pi -e 's@GRAPHFMT="...";@GRAPHFMT="png";@' bin/mrtg<br> bin/indexmaker<br>
# make install<br>
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/bin<br>
mkdir /usr/local/mrtg-2<br>
mkdir /usr/local/mrtg-2/bin<br>
for x in bin/mrtg bin/cfgmaker bin/indexmaker bin/rateup; do \<br>
  /opt/sfw/bin/ginstall -c -m 755 $x /usr/local/mrtg-2/bin; done<br>
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/lib/mrtg2/Pod<br>
mkdir /usr/local/mrtg-2/lib<br>
mkdir /usr/local/mrtg-2/lib/mrtg2<br>
mkdir /usr/local/mrtg-2/lib/mrtg2/Pod<br>
for x in lib/mrtg2/*.pm; do \<br>
  /opt/sfw/bin/ginstall -c -m 644 $x /usr/local/mrtg-2/lib/mrtg2; done<br>
for x in lib/mrtg2/Pod/*.pm; do \<br>
  /opt/sfw/bin/ginstall -c -m 644 $x /usr/local/mrtg-2/lib/mrtg2/Pod; done<br>
for x in images/*.gif images/*.png; do \<br>
  /opt/sfw/bin/ginstall -c -m 644 $x /usr/local/mrtg-2/lib/mrtg2; done<br>
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/doc/mrtg2<br>
mkdir /usr/local/mrtg-2/doc<br>
mkdir /usr/local/mrtg-2/doc/mrtg2<br>
for x in COPYING COPYRIGHT README CHANGES THANKS doc/*.pod doc/*.html<br> doc/*.wml doc/*.txt doc/*.png; do \<br>
  /opt/sfw/bin/ginstall -c -m 644 $x /usr/local/mrtg-2/doc/mrtg2; done<br>
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/man/man1<br>
mkdir /usr/local/mrtg-2/man<br>
mkdir /usr/local/mrtg-2/man/man1<br>
for x in doc/*.1; do \<br>
  /opt/sfw/bin/ginstall -c -m 644 $x /usr/local/mrtg-2/man/man1; done<br>
# cd /opt/local<br>
# ls<br>
bin      include  lib      mrtg-2   vnc<br>
# cd mrtg-2<br>
# ls<br>
bin  doc  lib  man<br>
# cd bin<br>
# ls<br>
cfgmaker    indexmaker  mrtg        rateup<br>
| 1 2 3 Page 3
ITWorld DealPost: The best in tech deals and discounts.
Shop Tech Products at Amazon