[mrtg] Mrtg Compile Errors
wu hong
rose_hongwu at yahoo.ca
Fri Mar 27 16:11:02 CET 2009
Thanks for the help!!!
I started all over again followed step by step exactly. Finally I passed compiling GD. However when I tried to compile MRTG, I experienced the following erorrs complaining the same file when ran "make install". I was successful in a x86 box with the same file. I found the x86 uses $INSTALL_DIR/install-sh instead of /opt/sfw/bin/install on the sparc box. I am not sure it is the cause. If it is, which step had the problem, how to fix this?
Could anyone help with it? Your help is much appreciated.
gnat# make
gcc -I/apps/mrtg/gd -I/apps/mrtg/zlib -I/apps/mrtg/libpng -DGFORM_GD=gdImageGif -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=/apps/mrtg/libpng:/apps/mrtg/zlib:/apps/mrtg/gd gcc bin/rateup.o -o bin/rateup -L/apps/mrtg/gd -L/apps/mrtg/zlib -L/apps/mrtg/libpng -Wl,-Bstatic -lgd -Wl,-Bdynamic -lm
/usr/bin/perl -0777 -p -i~ -e "s'^#!\s*/\S*perl'#! /usr/bin/perl'" ./bin/cfgmaker ./bin/indexmaker ./bin/mrtg
/usr/bin/perl -0777 -p -i~ -e 's at GRAPHFMT="...";@GRAPHFMT="gif";@' ./bin/mrtg ./bin/indexmaker
gnat# make install
/usr/bin/perl -0777 -p -i~ -e "s'^#!\s*/\S*perl'#! /usr/bin/perl'" ./bin/cfgmaker ./bin/indexmaker ./bin/mrtg
/usr/bin/perl -0777 -p -i~ -e 's at GRAPHFMT="...";@GRAPHFMT="gif";@' ./bin/mrtg ./bin/indexmaker
/bin/sh ./mkinstalldirs /apps/mrtg/mrtg-2.16.2/bin
for x in ./bin/mrtg ./bin/cfgmaker ./bin/indexmaker ./bin/mrtg-traffic-sum; do \
/opt/sfw/bin/install -c -m 755 $x /apps/mrtg/mrtg-2.16.2/bin; done
/opt/sfw/bin/install: `./bin/mrtg' and `/apps/mrtg/mrtg-2.16.2/bin/mrtg' are the same file
*** Error code 1
make: Fatal error: Command failed for target `install'
--- On Wed, 3/25/09, Sean Cheesman <scheesman at caeveo.com> wrote:
> From: Sean Cheesman <scheesman at caeveo.com>
> Subject: RE: [mrtg] Mrtg Compile Errors
> To: "wu hong" <rose_hongwu at yahoo.ca>, "mrtg at lists.oetiker.ch" <mrtg at lists.oetiker.ch>
> Received: Wednesday, March 25, 2009, 5:22 PM
> GD can be a pain. I would
> recommend you walk through the documentation and follow it
> step by step. Every time I've tried to build MRTG by
> hand, I have GD problems. When I follow the directions
> (including all command and options) it installs
> perfectly....
>
> http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html
>
> ________________________________________
> From: mrtg-bounces at lists.oetiker.ch
> [mrtg-bounces at lists.oetiker.ch]
> On Behalf Of wu hong [rose_hongwu at yahoo.ca]
> Sent: Wednesday, March 25, 2009 5:14 PM
> To: mrtg at lists.oetiker.ch
> Subject: [mrtg] Mrtg Compile Errors
>
> Hi,
>
> I am a new user to MRTG. Hope anyone can help me out.
>
> I am trying to install mrtg-2.16.2 version on Solaris 10
> sparc server according to the installation guide: http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html.
> I followed the same steps and compiled the following
> software required for MRTG except that I put them under
> /apps/mrtg instead of /usr/local/src:
>
> zlib-1.2.3.tar.gz
> libpng-1.2.35.tar.gz
> gd-2.0.35.tar.gz
>
> However when I tried to compile MRTG, I got the the
> following errors for configure command. What do I miss here?
> Any help would be much appreciated.
>
> gorilla.tmi.telus.com# ./configure
> --prefix=/apps/mrtg/mrtg-2.16.2 --with-gd=/apps/mrtg/gd
> --with-z=/apps/mrtg/zlib --with-png=/apps/mrtg/libpng
> 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 ISO C89... none needed
> checking how to run the C preprocessor... gcc -E
> checking whether make sets $(MAKE)... yes
> checking for a BSD-compatible install... ./install-sh -c
> checking for perl... /usr/bin/perl
> checking for groff... no
> checking for nroff... /usr/bin/nroff
> checking for grep that handles long lines and -e...
> /usr/sfw/bin/ggrep
> checking for egrep... /usr/sfw/bin/ggrep -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... no
> checking for gdImagePng in -lgd... no
> checking for gdImagePng_jpg in -lgd... no
> checking for gdImagePng_jpg_ft in -lgd... no
> checking for gdImageGd in -lgd... no
> checking gd.h usability... yes
> checking gd.h presence... yes
> checking for gd.h... yes
>
> ** Ooops, one of many bad things happened:
>
> a) You don't have the GD library
> installed.
> Get it from http://www.boutell.com, compile it and
> use either
> --with-gd-lib=DIR and --with-gd-inc=DIR to specify
> its location. You might
> also have to use --with-z-inc,
>
> --with-z-lib and --with-png-inc,
> --with-png-lib for gd
>
> versions 1.6 and higher. Check
> config.log for more
> information on the
> problem.
>
> b) You have the GD library
> installed, but not the gd.h
> header file. Download
> the source (see above) and use
> --with-gd-inc=DIR to
> specify where the file can be found.
>
> c) You have the library and the
> header file installed, but
> you also have a shared GD
> library in the same directory.
> Remove the shared library
> files and/or links (e.g.
> libgd.so.2.0.0, libgd.so
> and libgd.so.2). This is especially
> likely
> if you're using a recent (post 1.8.4) version of GD
> and didn't configure it
> with --disable-shared.
>
> d) You have gd library installed
> and also it's headers, but you are
> missing libpng (and
> headers) or freetype (and headers)
> (mrtg does not use
> freetype, but if your copy of gd is precompiled
> against it, you have to
> install it ...
>
> Consider following the instructions in
> doc/mrtg-unix-guide.txt
>
>
>
>
> __________________________________________________________________
> Looking for the perfect gift? Give the gift of Flickr!
>
> http://www.flickr.com/gift/
>
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>
__________________________________________________________________
Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com
More information about the mrtg
mailing list