I have installed Webalizer on Ubuntu with Synaptic Package Manager and it works just fine.
Then I installed Webalizer on Mac (10.6.2) with http://webalizer.darwinports.com/. But geolocation does not work.
I have parsed the exactly same log with Ubuntu and Mac, and Ubuntu finds 156 locations and Mac finds only one:
The default location can be found by using the '-vV' command line switches of the Webalizer if you are unsure.
But that does not say where default location is.
$ webalizer -vV Webalizer V2.01-10 (Darwin 10.2.0) English Copyright 1997-2001 by Bradford L. Barrett
$ webalizer -vV Webalizer V2.01-10 (Linux 2.6.31-16-generic) locale Copyright 1997-2001 by Bradford L. Barrett
When I run webalizer on Ubuntu it says it is using geoip database (Mac does not even display that line):
$ webalizer -o report december.log ... Using default GeoIP database ...
README says I should use -J switch to point to geolocation database, but I guess I am doing something wrong, because it tries to use geolocation file as input file:
$ webalizer -o report -J /Users/zeljko/GeoDB.dat december.log Webalizer V2.01-10 (Darwin 10.2.0) English Using logfile /Users/zeljko/GeoDB.dat (clf) Creating output in report Hostname for reports is 'mac' Reading history file... webalizer.hist Skipping bad record (1) ... No valid records found!
It behaves the same on Ubuntu if I try to use downloaded geolocation database.