Webalizer 2.23-03 released

unihostbrasil

Verified User
Joined
Nov 23, 2009
Messages
210
Location
São Paulo - Brazil
2.23-xx changes from 2.21-xx

Fixes:
o Fix sporadic eol problem with some IIS/W3C logs

o Fix compiler directive syntax error (broke some 64 bit systems)

Changes/Additions:
o Modest speed improvements in hash table code


To update:

$ mv /usr/bin/webalizer /usr/bin/webalizer.BKP
$ cd /usr/local/directadmin/custombuild
$ ./build clean
$ ./build update
$ ./build webalizer


In case of errors, install these dependencies:

$ yum install libpng libgd.so.2 db4-devel
 
Last edited:
hi when i'm trying to install it, is coming out this error :

Code:
configure: error: gd library not found.. please install libgd
Trying to make webalizer...
make: *** No targets specified and no makefile found.  Stop.

anyone figure out of this?

EDIT: I figured it out doing the following steps :

Code:
wget http://files.directadmin.com/services/custombuild/gd-2.0.35.tar.gz
tar -zxvf gd-2.0.35.tar.gz
cd gd-2.0.35
./configure
make
make install
cd /usr/local/directadmin/custombuild
./build clean
./build update
./build webalizer

:)
 
Last edited:
I would to update webalizer via ./build webalizer

I previously rename the file webalizer in /usr/bin/

then I perfomed that : ./build webalizer

I got " configure: error: gd library not found.. please install libgd"
then I installed gd manually : (actually I already got GD (I can check it
when I try 'yum install gd'))-Anyway, I followed the tip on the previous post:

wget http://files.directadmin.com/services/custombuild/gd-2.0.35.tar.gz
tar -zxvf gd-2.0.35.tar.gz
cd gd-2.0.35
./configure
./make
./make install

then update webalizer:

[root@server custombuild]# ./build webalizer
File already exists: webalizer-2.23-03-src.tgz
MD5 Checksum on webalizer-2.23-03-src.tgz passed.
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 whether ln -s works... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 whether char is unsigned... no
checking for u_int64_t... yes
checking whether altzone is declared... no
checking for main in -l44bsd... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for main in -lm... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for main in -lz... yes
checking for gzrewind in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for main in -lpng... yes
checking for main in -lgd... yes
checking for gdImagePng in -lgd... yes
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for main in -ldb... no
configure: WARNING: libdb not found.. DNS/GeoDB code disabled!
checking for language file... yes - english
configure: creating ./config.status
config.status: creating Makefile
config.status: linking ./lang/webalizer_lang.english to webalizer_lang
configure: Done. Type 'make' to continue with build.
Trying to make webalizer...
gcc -Wall -O2 -I/usr/include -I/usr/lib -Iyes -DETCDIR=\"/usr/etc\" -
=\"/usr/share/GeoDB\" -DPACKAGE_NAME=\"webalizer\" -DPACKAGE_TARNAME=\
\" -DPACKAGE_VERSION=\"V2.23\" -DPACKAGE_STRING=\"webalizer\ V2.23\" -
UGREPORT=\"\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES
E_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
NGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE
1 -DHAVE_MATH_H=1 -c webalizer.c
gcc -Wall -O2 -I/usr/include -I/usr/lib -Iyes -DETCDIR=\"/usr/etc\" -
=\"/usr/share/GeoDB\" -DPACKAGE_NAME=\"webalizer\" -DPACKAGE_TARNAME=\
\" -DPACKAGE_VERSION=\"V2.23\" -DPACKAGE_STRING=\"webalizer\ V2.23\" -
UGREPORT=\"\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES
E_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
NGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE
1 -DHAVE_MATH_H=1 -c hashtab.c
hashtab.c:71: error: expected `=', `,', `;', `asm' or `__attribute__'
sh'
hashtab.c: In function `put_hnode':
hashtab.c:160: error: `uint32_t' undeclared (first use in this functio
hashtab.c:160: error: (Each undeclared identifier is reported only onc
hashtab.c:160: error: for each function it appears in.)
hashtab.c:160: error: expected `;' before `hval'
hashtab.c:163: error: `hval' undeclared (first use in this function)
hashtab.c:163: warning: implicit declaration of function `hash'
hashtab.c: In function `put_unode':
hashtab.c:362: error: `uint32_t' undeclared (first use in this functio
hashtab.c:362: error: expected `;' before `hval'
hashtab.c:366: error: `hval' undeclared (first use in this function)
hashtab.c: In function `put_rnode':
hashtab.c:491: error: `uint32_t' undeclared (first use in this functio
hashtab.c:491: error: expected `;' before `hval'
hashtab.c:495: error: `hval' undeclared (first use in this function)
hashtab.c: In function `put_anode':
hashtab.c:617: error: `uint32_t' undeclared (first use in this functio
hashtab.c:617: error: expected `;' before `hval'
hashtab.c:621: error: `hval' undeclared (first use in this function)
hashtab.c: In function `put_snode':
hashtab.c:734: error: `uint32_t' undeclared (first use in this functio
hashtab.c:734: error: expected `;' before `hval'
hashtab.c:738: error: `hval' undeclared (first use in this function)
hashtab.c: In function `put_inode':
hashtab.c:850: error: `uint32_t' undeclared (first use in this functio
hashtab.c:850: error: expected `;' before `hval'
hashtab.c:854: error: `hval' undeclared (first use in this function)
hashtab.c: At top level:
hashtab.c:1231: error: expected `=', `,', `;', `asm' or `__attribute__
hash'
make: *** [hashtab.o] Error 1

*** The make has failed, do you want to try to make again? (y,n)::confused::confused:

I am turning around , please help me!!
I can't update webalizer...

thanks a lot
 
I would to update webalizer via ./build webalizer

I previously rename the file webalizer in /usr/bin/

then I perfomed that : ./build webalizer

I got " configure: error: gd library not found.. please install libgd"
then I installed gd manually : (actually I already got GD (I can check it
when I try 'yum install gd'))-Anyway, I followed the tip on the previous post:

wget http://files.directadmin.com/services/custombuild/gd-2.0.35.tar.gz
tar -zxvf gd-2.0.35.tar.gz
cd gd-2.0.35
./configure
./make
./make install

then update webalizer:

[root@server custombuild]# ./build webalizer
File already exists: webalizer-2.23-03-src.tgz
MD5 Checksum on webalizer-2.23-03-src.tgz passed.
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 whether ln -s works... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 whether char is unsigned... no
checking for u_int64_t... yes
checking whether altzone is declared... no
checking for main in -l44bsd... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for main in -lm... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for main in -lz... yes
checking for gzrewind in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for main in -lpng... yes
checking for main in -lgd... yes
checking for gdImagePng in -lgd... yes
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for main in -ldb... no
configure: WARNING: libdb not found.. DNS/GeoDB code disabled!
checking for language file... yes - english
configure: creating ./config.status
config.status: creating Makefile
config.status: linking ./lang/webalizer_lang.english to webalizer_lang
configure: Done. Type 'make' to continue with build.
Trying to make webalizer...
gcc -Wall -O2 -I/usr/include -I/usr/lib -Iyes -DETCDIR=\"/usr/etc\" -
=\"/usr/share/GeoDB\" -DPACKAGE_NAME=\"webalizer\" -DPACKAGE_TARNAME=\
\" -DPACKAGE_VERSION=\"V2.23\" -DPACKAGE_STRING=\"webalizer\ V2.23\" -
UGREPORT=\"\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES
E_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
NGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE
1 -DHAVE_MATH_H=1 -c webalizer.c
gcc -Wall -O2 -I/usr/include -I/usr/lib -Iyes -DETCDIR=\"/usr/etc\" -
=\"/usr/share/GeoDB\" -DPACKAGE_NAME=\"webalizer\" -DPACKAGE_TARNAME=\
\" -DPACKAGE_VERSION=\"V2.23\" -DPACKAGE_STRING=\"webalizer\ V2.23\" -
UGREPORT=\"\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES
E_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
NGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE
1 -DHAVE_MATH_H=1 -c hashtab.c
hashtab.c:71: error: expected `=', `,', `;', `asm' or `__attribute__'
sh'
hashtab.c: In function `put_hnode':
hashtab.c:160: error: `uint32_t' undeclared (first use in this functio
hashtab.c:160: error: (Each undeclared identifier is reported only onc
hashtab.c:160: error: for each function it appears in.)
hashtab.c:160: error: expected `;' before `hval'
hashtab.c:163: error: `hval' undeclared (first use in this function)
hashtab.c:163: warning: implicit declaration of function `hash'
hashtab.c: In function `put_unode':
hashtab.c:362: error: `uint32_t' undeclared (first use in this functio
hashtab.c:362: error: expected `;' before `hval'
hashtab.c:366: error: `hval' undeclared (first use in this function)
hashtab.c: In function `put_rnode':
hashtab.c:491: error: `uint32_t' undeclared (first use in this functio
hashtab.c:491: error: expected `;' before `hval'
hashtab.c:495: error: `hval' undeclared (first use in this function)
hashtab.c: In function `put_anode':
hashtab.c:617: error: `uint32_t' undeclared (first use in this functio
hashtab.c:617: error: expected `;' before `hval'
hashtab.c:621: error: `hval' undeclared (first use in this function)
hashtab.c: In function `put_snode':
hashtab.c:734: error: `uint32_t' undeclared (first use in this functio
hashtab.c:734: error: expected `;' before `hval'
hashtab.c:738: error: `hval' undeclared (first use in this function)
hashtab.c: In function `put_inode':
hashtab.c:850: error: `uint32_t' undeclared (first use in this functio
hashtab.c:850: error: expected `;' before `hval'
hashtab.c:854: error: `hval' undeclared (first use in this function)
hashtab.c: At top level:
hashtab.c:1231: error: expected `=', `,', `;', `asm' or `__attribute__
hash'
make: *** [hashtab.o] Error 1

*** The make has failed, do you want to try to make again? (y,n)::confused::confused:

I am turning around , please help me!!
I can't update webalizer...

thanks a lot

OK FIXED!!!
perform :
yum install db4-devel

thanks :)
 
This is strange - I did update webalizer successfully:

/usr/local/directadmin/custombuild: /usr/local/bin/webalizer
Webalizer V2.23-03 (FreeBSD 7.3-RELEASE-p2 i386) English
...


however when I open the stats, ex http://host:2222/CMD_WEBALIZER/domain.com/index.html, it shows at the bottom:

Generated by Webalizer Version 2.21

What is not updated?
 
I would like to fix it in the same way, but...

OK FIXED!!!
perform :
yum install db4-devel

I would like to do the same, but...

# yum: command not found

So how can I get db4-devel (Debian 5.0.8 64 bit)?
 
webalizer dont install even though I have done all tips including install of the db4 via yum from both @unihostbrasil and @Elfodellanotte tips. no go, keeps spitting out
configure: error: gd library not found.. please install libgd
Trying to make webalizer...
make: *** No targets specified and no makefile found. Stop.

*** The make has failed, do you want to try to make again? (y,n):
raaaarrrr :mad:
 
Last edited:
@jonn,

You either don't have libgd installed or it's not installed in the right place.

Jeff
 
@jeff

libgd seems to be installed. what location is libgd suppose to be in for webalizer,

I even tried installing with instruction on http://help.directadmin.com/item.php?id=237. It always stops at make no matter what I try.
./configure --prefix=/usr --with-png=/usr/lib --with-gdlib=/usr/lib --with-gd=/usr/local/include --enable-dns --with-dblib --with-db --with-z-inc --with-zlib

# locate libgd
/usr/lib/libgd.so.2
/usr/lib/libgd.so.2.0.0
/usr/lib64/libgd.so.2
/usr/lib64/libgd.so.2.0.0
/usr/lib64/libgdbm.so.2
/usr/lib64/libgdbm.so.2.0.0
/usr/local/directadmin/custombuild/gd-2.0.35/windows/libgd.rc
/usr/local/include/php/ext/gd/libgd
/usr/local/include/php/ext/gd/libgd/gd.h
/usr/local/include/php/ext/gd/libgd/gd_io.h
/usr/local/include/php/ext/gd/libgd/gdcache.h
/usr/local/include/php/ext/gd/libgd/gdfontg.h
/usr/local/include/php/ext/gd/libgd/gdfontl.h
/usr/local/include/php/ext/gd/libgd/gdfontmb.h
/usr/local/include/php/ext/gd/libgd/gdfonts.h
/usr/local/include/php/ext/gd/libgd/gdfontt.h
/usr/local/include/php/ext/gd/libgd/gdhelpers.h
/usr/local/include/php/ext/gd/libgd/jisx0208.h
/usr/local/include/php/ext/gd/libgd/wbmp.h
/usr/src/ffmpegscript/libwmf-0.2.8.4/src/extra/gd/libgd.la
/usr/src/ffmpegscript/libwmf-0.2.8.4/src/extra/gd/.libs/libgd.a
/usr/src/ffmpegscript/libwmf-0.2.8.4/src/extra/gd/.libs/libgd.la
 
Ive spent all day on this crap, just installed awstats worked first time with custombuild install after enabled in options.conf and disabled webalizer, shame it doesnt work the way I want it to.
 
Hello,

FYI, on debian the libdb4 is called libdb4.6-dev.. or libdb4.7-dev.. or libdb4.8-dev... depending on what version of libdb you currently have. To check, type:
Code:
dpkg --get-selections | grep libdb
and see what comes up.

As for the actual problem, if you're having issues with the default install not working, feel free to send us an email. For strange compile issues, often it's quicker to just include your IP, root pass, and admin pass, and let us try to sort it out. Unsual errors can often take a while to sort out over email, vs us being logged into your system would speed it up greatly.

Be sure to include the options you want (webalizer, or awstats, or both)

John
 
Back
Top