2004-11-03, 11:22 PM
I'm trying to install webalizer on RH9. Here's some details:
Code:
[root@melray webalizer-2.01-10]# ./configure
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
creating ./config.status
creating Makefile
linking ./lang/webalizer_lang.english to webalizer_lang.h
Code:
[root@melray webalizer-2.01-10]# make
gcc -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(.text+0x5aa): In function `year_graph6x':
: undefined reference to `gdImagePng'
graphs.o(.text+0x126d): In function `month_graph6':
: undefined reference to `gdImagePng'
graphs.o(.text+0x1bd5): In function `day_graph3':
: undefined reference to `gdImagePng'
graphs.o(.text+0x2338): In function `pie_chart':
: undefined reference to `gdImagePng'
collect2: ld returned 1 exit status
make: *** [webalizer] Error 1
Code:
[root@melray webalizer-2.01-10]# rpm -q libpng
libpng-1.2.2-20
[root@melray webalizer-2.01-10]# rpm -q libpng-devel
libpng-devel-1.2.2-20
[root@melray webalizer-2.01-10]# rpm -q gd
gd-1.8.4-11
[root@melray webalizer-2.01-10]# rpm -q gd-devel
gd-devel-1.8.4-11
I know gd works properly becuase I use Gallery on this server. However, I don't know why I can't get webalizer up and running. Please let me know if you need any more information about this setup so I can get this working.
Ray