File: README.BUILDING-GeoIP

package info (click to toggle)
ipv6calc 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,400 kB
  • sloc: ansic: 73,764; sh: 5,750; perl: 4,030; xml: 1,194; makefile: 888
file content (34 lines) | stat: -rw-r--r-- 1,064 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
BUILDING GeoIP
--------------------
If you want to use the GeoIP library with ipv6calc, you will
have to build and install it yourself separately.

Instructions for current version (1.4.8)

install following RPMs (usually supported by distribution)

	GeoIP GeoIP-devel

Create as user "root" database directories:

Install databases

# mkdir -p /var/local/share/GeoIP

Update databases (GeoLite databases do not require a license)

# pushd /var/local/share/GeoIP/ || exit 1
# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz && gunzip -f GeoIP.dat.gz
# wget http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz && gunzip -f GeoIPv6.dat.gz


Enable GeoIP support by using following configure options:
  --enable-geoip

  In case, dynamic load of library should be enabled (conditional GeoIP support), add
     --with-geoip-dynamic

  Having GeoIP databases not stored in /usr/share/GeoIP (or a softlink created), add e.g.
     --with-geoip-db=/var/local/share/GeoIP

  For more specifc options see ./configure --help