Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-04-2004, 03:22 PM   #1
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82

Rep: Reputation: 15
Webalizer probs

Hi all,

Iím trying to run webalizer. When I do so I get:

[root@thorgal include]# webalizer

webalizer: error while loading shared libraries: cannot open shared object file: No such file or directory

In the documentation I found:

Q: I get "libgd not found' errors?

A: You don't have the GD graphics located in a standard library path, or you don't have the GD graphics library at all. If the later, go to and grab a copy. If you do have it, add a -L switch in the Makefile to point to the proper location.

Problem is I do not know how to make an L switch. Can someone explain me. My GD is installed in /usr/local/gd

Thanks for helping me out.

My Makefile is below.

[root@thorgal webalizer-2.01-10]# cat Makefile

# Generated automatically from by configure.


# Makefile for webalizer - a web server log analysis program


# Copyright (C) 1997-2000 Bradford L. Barrett (


# This program is free software; you can redistribute it and/or modify

# it under the terms of the GNU General Public License as published by

# the Free Software Foundation; either version 2 of the License, or

# (at your option) any later version, and provided that the above

# copyright and permission notice is included with all distributed

# copies of this or derived software.


# This program is distributed in the hope that it will be useful,

# but WITHOUT ANY WARRANTY; without even the implied warranty of


# GNU General Public License for more details (file "COPYING").


prefix = /usr/local/webalizer

exec_prefix = ${prefix}

BINDIR = ${exec_prefix}/bin

MANDIR = ${prefix}/man/man1

ETCDIR = /etc

CC = gcc

CFLAGS = -Wall -O2

LIBS = -lgd -lpng -lz -lm



INSTALL= /usr/bin/install -c



# where are the GD header files?


# Shouldn't have to touch below here!

all: webalizer

webalizer: webalizer.o webalizer.h hashtab.o hashtab.h \

linklist.o linklist.h preserve.o preserve.h \

dns_resolv.o dns_resolv.h parser.o parser.h \

output.o output.h graphs.o graphs.h lang.h \


$(CC) ${LDFLAGS} -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o graphs.o ${LIBS}

rm -f webazolver

ln -s webalizer webazolver

webalizer.o: webalizer.c webalizer.h parser.h output.h preserve.h \

graphs.h dns_resolv.h webalizer_lang.h

$(CC) ${CFLAGS} ${DEFS} -c webalizer.c

parser.o: parser.c parser.h webalizer.h lang.h

$(CC) ${CFLAGS} ${DEFS} -c parser.c

hashtab.o: hashtab.c hashtab.h dns_resolv.h webalizer.h lang.h

$(CC) ${CFLAGS} ${DEFS} -c hashtab.c

linklist.o: linklist.c linklist.h webalizer.h lang.h

$(CC) ${CFLAGS} ${DEFS} -c linklist.c

output.o: output.c output.h webalizer.h preserve.h \

hashtab.h graphs.h lang.h

$(CC) ${CFLAGS} ${DEFS} -c output.c

preserve.o: preserve.c preserve.h webalizer.h parser.h \

hashtab.h graphs.h lang.h

$(CC) ${CFLAGS} ${DEFS} -c preserve.c

dns_resolv.o: dns_resolv.c dns_resolv.h lang.h webalizer.h

$(CC) ${CFLAGS} ${DEFS} -c dns_resolv.c

graphs.o: graphs.c graphs.h webalizer.h lang.h

$(CC) ${CFLAGS} ${DEFS} -I${GDLIB} -c graphs.c


rm -f webalizer webazolver *.o usage*.png daily*.png hourly*.png

rm -f ctry*.png *.html *.hist *.current core *.gif

distclean: clean

rm -f webalizer.conf *.tar *.tgz *.Z *.tar.gz

rm -f Makefile webalizer_lang.h config.cache config.log config.status

ln -s lang/webalizer_lang.english webalizer_lang.h

install: all

$(INSTALL_PROGRAM) webalizer ${BINDIR}/webalizer

$(INSTALL_DATA) webalizer.1 ${MANDIR}/webalizer.1

$(INSTALL_DATA) sample.conf ${ETCDIR}/webalizer.conf.sample

rm -f ${BINDIR}/webazolver

ln -s ${BINDIR}/webalizer ${BINDIR}/webazolver


rm -f ${BINDIR}/webalizer

rm -f ${BINDIR}/webazolver

rm -f ${MANDIR}/webalizer.1

rm -f ${ETCDIR}/webalizer.conf.sample

rm -f webalizer_lang.h

ln -s lang/webalizer_lang.english webalizer_lang.h

[root@thorgal webalizer-2.01-10]#
Old 04-04-2004, 04:59 PM   #2
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
you need to download and install the libg wahtever.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
webalizer riluve Linux - Software 1 03-12-2005 06:35 PM
Where is Webalizer FunkFlex Linux - Software 1 03-11-2005 12:12 PM
Webalizer MDSJB Linux - Newbie 4 06-01-2004 06:05 AM
Webalizer herc Linux - Software 0 09-06-2003 07:45 AM
Webalizer Help KillerCheeto Linux - Newbie 0 12-23-2002 06:23 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration