having troubes
I am having problems installing this.. can someone help me.
Thanks,
Nicholas.
root@sani03 [/]# wget
http://serveio.com/da/install.mrtg.sh
--17:33:39--
http://serveio.com/da/install.mrtg.sh
=> `install.mrtg.sh'
Resolving serveio.com... 69.9.34.242
Connecting to serveio.com[69.9.34.242]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,987 [application/x-sh]
100%[===================================================================================>] 1,987 --.--K/s
17:33:39 (145.77 MB/s) - `install.mrtg.sh' saved [1,987/1,987]
root@sani03 [/]# chmod +x install.mrtg.sh
root@sani03 [/]# ./install.mrtg.sh
MRTG Installer 1.0 ---------------------
By: Matt Savona (
www.serveio.com)
----------------------------------------
Checking for previous MRTG installation...
The directory /var/www/html/mrtg does not exist. I will create it...
mkdir: cannot create directory `/var/www/html/mrtg': No such file or directory
Creating necessary directories and preparing for installation...
mkdir: cannot create directory `/var/www/html/mrtg/core': No such file or directory
chmod: failed to get attributes of `/var/www/html/mrtg/core': No such file or directory
Preparations complete...
Downloading the most recent MRTG and installing it...
--17:33:56--
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/mrtg.tar.gz
=> `mrtg.tar.gz'
Resolving people.ee.ethz.ch... 129.132.2.203
Connecting to people.ee.ethz.ch[129.132.2.203]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,135,438 [application/x-tar]
100%[===================================================================================>] 1,135,438 526.78K/s
17:33:59 (525.05 KB/s) - `mrtg.tar.gz' saved [1,135,438/1,135,438]
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/local/bin/perl
checking for groff... /usr/bin/groff
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking for unsigned long long... yes
checking for long long... yes
checking for strtoll... yes
checking for printf long long format specifier... %lld
checking for pow in -lm... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImagePng_jpg in -lgd... no
checking for gdImagePng_jpg_ft in -lgd... no
checking for gdImageGd in -lgd... yes
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking the weather... (cached) it's fine
checking if we can use GCC-specific compiler options... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
ordering CD from
http://people.ee.ethz.ch/~oetiker/wish .... just kidding ;-)
----------------------------------------------------------------
Config is DONE!
Type 'make' to compile the software
... that wishlist mentioned above does really exist. So if
you feel like showing your appreciation for MRTG, this is the
place to go. I just love CDs and DVDs
-- Tobi Oetiker <
[email protected]>
----------------------------------------------------------------
gcc -I/usr/local/lib -DGFORM_GD=gdImagePng -g -O2 -Wall -Wpointer-arith -Wcast-align -Wmissing-declarations -Wnested-externs -Winline -W -DHAVE_CONFIG_H -c ./src/rateup.c -o bin/rateup.o
LD_RUN_PATH=/usr/local/lib gcc bin/rateup.o -o bin/rateup -L/usr/local/lib -Wl,-Bstatic -lgd -lpng -lz -Wl,-Bdynamic -lm
/usr/local/bin/perl -0777 -p -i~ -e 's@^#!\s*/\S*perl@#! /usr/local/bin/perl@' ./bin/cfgmaker ./bin/indexmaker ./bin/mrtg
/usr/local/bin/perl -0777 -p -i~ -e 's@GRAPHFMT="...";@GRAPHFMT="png";@' ./bin/mrtg ./bin/indexmaker
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/bin
for x in ./bin/mrtg ./bin/cfgmaker ./bin/indexmaker; do \
/usr/bin/install -c -m 755 $x /usr/local/mrtg-2/bin; done
for x in bin/rateup; do \
/usr/bin/install -c -m 755 $x /usr/local/mrtg-2/bin; done
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/lib/mrtg2/Pod
for x in ./lib/mrtg2/*.pm; do \
/usr/bin/install -c -m 644 $x /usr/local/mrtg-2/lib/mrtg2; done
for x in ./lib/mrtg2/Pod/*.pm; do \
/usr/bin/install -c -m 644 $x /usr/local/mrtg-2/lib/mrtg2/Pod; done
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/share/mrtg2/icons
for x in ./images/*.gif ./images/*.png; do \
/usr/bin/install -c -m 644 $x /usr/local/mrtg-2/share/mrtg2/icons; done
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/share/doc/mrtg2
(cd .; for x in COPYING COPYRIGHT README CHANGES THANKS doc/*.pod doc/*.html doc/*.wml doc/*.txt doc/*.png; do \
/usr/bin/install -c -m 644 $x /usr/local/mrtg-2/share/doc/mrtg2; done)
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/man/man1
for x in ./doc/*.1; do \
/usr/bin/install -c -m 644 $x /usr/local/mrtg-2/man/man1; done
MRTG has been installed...
Updating MRTG config and template...
--17:34:10--
http://www.serveio.com/da/mrtgcfg.tar.gz
=> `mrtgcfg.tar.gz'
Resolving
www.serveio.com... 69.9.34.242
Connecting to
www.serveio.com[69.9.34.242]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,056 [application/x-gzip]
100%[===================================================================================>] 2,056 --.--K/s
17:34:10 (150.83 MB/s) - `mrtgcfg.tar.gz' saved [2,056/2,056]
mv: cannot move `system' to `/var/www/html/mrtg/core': No such file or directory
mv: cannot move `mrtg.cfg' to `/var/www/html/mrtg/core': No such file or directory
Update complete!
Adding MRTG to /etc/crontab...
Executing MRTG for the first time (you may see some warnings)...
ERROR: Creating templock /var/www/html/mrtg/core/mrtg.cfg_l_4203: No such file or directory at /usr/local/mrtg-2/bin/mrtg line 1640.
If you see warnings above, it is generally safe to ignore.
Cleaning up installation...
Installation of MRTG complete!