LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-30-2004, 10:26 PM   #16
jnichel
LQ Newbie
 
Registered: Jul 2004
Location: Buffalo, New York
Distribution: Red Hat / Fedora
Posts: 9

Original Poster
Rep: Reputation: 0

Quote:
Originally posted by Donboy
In post #3 jnichel seemed worried about causing additional load on his machine. I think it's safe to say that the load being put on a machine by webalizer isn't terribly much, and if you run it at 3am when things are quiet it's probably not going to cause your users much grief.
That's not it. I wanted Webalizer to do the DNS lookups...I didn't want my webserver (Apache) to do the lookups...that's where I was worried about the added load. Webalizer configured and compiled fine when I enabled DNS lookups, but when I try to run it it tells me that DNS is _not_ enabled.
 
Old 07-30-2004, 10:33 PM   #17
dablan
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
Thumbs up

I guess you want to use mysql so you can save the history of the logs and save some extra disk space emptying them, right???

If that's your idea, what language are you working on?

I can help if you need some...
 
Old 07-30-2004, 10:43 PM   #18
jnichel
LQ Newbie
 
Registered: Jul 2004
Location: Buffalo, New York
Distribution: Red Hat / Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by dablan
I guess you want to use mysql so you can save the history of the logs and save some extra disk space emptying them, right???

If that's your idea, what language are you working on?
For the most part, MySQL is because it's what I know best out of the different DB's I work with, and I don't like talking to the Oracle admins.

I'm using php for the front end, but Perl for the daily dumping/truncating of the logs to the db, Again, sticking with what I know.
 
Old 07-30-2004, 10:49 PM   #19
dablan
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
Thumbs up

ok!

So you are going with the best!!!

If you need help, i am on
 
Old 08-28-2004, 09:29 PM   #20
zygron
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Webalizer fix

Hello,

I experienced the same problem, webalizer 2.0.10 didn't want to resolve dns saying "DNS Support is not enabled" although i had compiled with --enable-dns.
After reading this thread i had a glance at the sources, there seem to be something wrong with the configure file, although --enable-dns was specifed when configuring, USE_DNS is never defined so the sources are compiled without dns support, there's also an issue with the berkeley db headers included by default, if HAVE_DB_185H is defined (and it never is even if the header is present) it should use <db_185.h> otherwise it fallbacks to <db.h> which is apparently incompatible (some functions prototypes differs so you get compile errors). I was to lazy to check the whole configure file to see where the error was so i decided to force DNS Support & use of db_185 by modifying slightly the makefile:

Makefile - line 28, the original file looks like this

LIBS = -lgd -lpng -lz -lm -lnsl
DEFS = -DETCDIR=\"/etc\" -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHA VE_MATH_H=1

Modify the lines so they look like this:

LIBS = -lgd -lpng -lz -lm -lnsl -ldb
DEFS = -DETCDIR=\"/etc\" -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHA VE_MATH_H=1 -DUSE_DNS -DHAVE_DB_185_H

(you just need to append -ldb to LIBS, and -DUSE_DNS to DEFS -DHAVE_DB_185_H to DEFS)

Once you modified the file just save, and do a:

make clean
make
make install

As long as you have the db_185.h header it should compile and link fine.

Hope that helps...

Regards
 
Old 04-12-2007, 10:29 AM   #21
vboulytchev
LQ Newbie
 
Registered: Jul 2004
Distribution: MD 10
Posts: 9

Rep: Reputation: 0
solution

recompile your webalizer with --enable-dns

also, when you do ./configure --enable-dns --enable-debug...
make sure you have your DB installed

configure: warning: You must have a V1.85 compatable DB library!
configure: warning: DNS lookup code will be disabled...


./configure --enable-dns --enable-debug --with-db=/usr/include/ --with-dblib=/usr/lib/

Last edited by vboulytchev; 04-12-2007 at 10:43 AM.
 
Old 01-23-2009, 11:13 AM   #22
lcoffin
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Fixed for me....

This is a really old thread (!) but I ran into the same problem and was able to eventually get it fixed.

The problem was two-fold...

A) Didn't have the Berkeley DB libraries and headers installed

B) Had to do a 'make clean' before doing a new 'make'


== A ==

When you configure webalizer, even with the --enable-dns option, you need to be on the lookout for this warning:

configure: WARNING: db.h not found.. DNS/GeoDB code disabled!

configure will complete even with that warning message and tell you to run 'make'... but DNS support won't be included. You have to watch for that warning message. If you see it, it means Berkeley DB isn't installed.

== B ==

After installing Berkeley DB, I redid the ./configure and it showed that db.h was found, but after doing a make && make install, webalizer was still saying that DNS support wasn't present. This was because re-running ./configure didn't invalidate all the old '*.o' files in the webalizer src dir and dns support was still missing from them. I had to do an explicit 'make clean' before doing the 'make && make install'.


Hope this helps someone!

---Lawrence
 
  


Reply


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
sendmail dns lookups davidsrsb Linux - Networking 1 06-09-2005 09:35 PM
Webalizer county lookups berrance Linux - Software 1 12-05-2004 10:43 AM
DNS Lookups Slow kwiksand Linux - Networking 0 11-15-2004 04:52 AM
Sendail and DNS lookups Hessian Rider Linux - Networking 3 11-05-2002 07:03 AM
Reverse DNS Lookups ascii2k Linux - Networking 2 08-08-2001 09:01 AM


All times are GMT -5. The time now is 03:33 PM.

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