Installer Webalizer fra Source
Jeg er igang med at installere webalizer fra source, men installationen fejler med ikke at kunne finde GD-Lib... Her er hvad jeg har gjorthttp://www.libpng.org/pub/png/src/zlib-1.1.4.tar.gz
installeret ok
http://www.libpng.org/pub/png/src/libpng-1.2.5.tar.gz
installeret ok
http://www.boutell.com/gd/http/gd-2.0.15.tar.gz
installeret ok
gd lib er afhængig af zlib og libpng hvorfor jeg antager at de er installeret korrekt.
ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.01-10-src.tgz
./configure --with-png=/usr/local/lib/ giver mig
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether ln -s works... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking whether char is unsigned... (cached) no
checking for main in -l44bsd... (cached) no
checking for main in -lm... (cached) yes
checking for main in -lz... (cached) yes
checking for gzrewind in -lz... (cached) yes
checking for main in -lpng... (cached) yes
checking for gdImagePng in -lgd... (cached) no
checking for libgd.a... (cached) /usr/local/lib
checking for gd.h... (cached) /usr/local/include
checking for getopt.h... (cached) yes
checking for math.h... (cached) yes
checking default config dir... (cached) /etc
checking for language file... (cached) yes - english
updating cache ./config.cache
creating ./config.status
creating Makefile
linking ./lang/webalizer_lang.english to webalizer_lang.h
men jeg fejler i "make" med
gcc -L/usr/local/lib -L/usr/local/lib/ -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o graphs.o -lgd -lpng -lz -lm
graphs.o: In function `year_graph6x':
graphs.o(.text+0x5aa): undefined reference to `gdImagePng'
graphs.o: In function `month_graph6':
graphs.o(.text+0x126d): undefined reference to `gdImagePng'
graphs.o: In function `day_graph3':
graphs.o(.text+0x1bd5): undefined reference to `gdImagePng'
graphs.o: In function `pie_chart':
graphs.o(.text+0x2338): undefined reference to `gdImagePng'
/usr/local/lib/libgd.so: undefined reference to `iconv_open'
/usr/local/lib/libgd.so: undefined reference to `iconv_close'
/usr/local/lib/libgd.so: undefined reference to `iconv'
*** Error code 1
Stop in /usr/local/src/webalizer-2.01-10.
Dét er ligegodt mange "undefined references" og iconv fejler den helt med.
What to do ?
/ LJ