wrong path for geoip-directory
MAYER Hans
Hans.Mayer at iiasa.ac.at
Mon May 16 20:09:00 UTC 2022
Dear All,
I posted my question originally at GitLab issue area because I thought it’s maybe a bug. But it isn’t.
I compiled commit c77fcc61 (HEAD -> v9_18, origin/v9_18) with configure options
--enable-geoip --with-maxminddb=/usr/share/GeoIP
when i run named -V there is:
default paths:
named configuration: /usr/local/etc/named.conf
rndc configuration: /usr/local/etc/rndc.conf
DNSSEC root key: /usr/local/etc/bind.keys
nsupdate session key: /usr/local/var/run/named/session.key
named PID file: /usr/local/var/run/named/named.pid
named lock file: /usr/local/var/run/named/named.lock
geoip-directory: usr/share/GeoIP/share/GeoIP
The geoip-directory is quite strange as it doesn't exist
OS is Debian 11.3 ( bullseye ) with latest patch level.
pkg libmaxminddb-dev and libmaxminddb0 are installed.
Mark was so nice and replied for this issue request.
"Use --with-maxminddb=/usr. share/GeoIP is appended to this configure argument. This is the same as libraries where /include and /lib are appended to the configure argument.“
If I understand correctly "--with-maxminddb" is a relative path and will be add to "--prefix" which is in my case /usr/local
To work well I should compile with option --with-maxminddb=GeoIP and I make a symbolic link from /usr/local/GeoIP to /usr/share/GeoIP
But when I run configure with --with-maxminddb=GeoIP the following „make“ terminates with an error:
../../libtool: line 7563: cd: GeoIP/lib: No such file or directory
libtool: error: cannot determine absolute directory name of 'GeoIP/lib'
Which is also quite curios because below /usr/share/GeoIP there is no directory „lib“ but with --with-maxminddb=/usr/share/GeoIP it compiles well.
How to compile bind with the maxmind db located in /usr/share/GeoIP ?
Any help would be appreciated.
Kind regards
Hans
--
Ing. Dipl.-Ing. Hans Mayer
Systems Analyst
Network Unix Security Team (NUST)
Information and Communication Technologies (ICT)
International Institute for Applied Systems Analysis (IIASA)
Schlossplatz 1
A-2361 Laxenburg, Austria
Phone: +43 2236 807 Ext 215
Mobile: +43 676 83 807 215
Web: http://www.iiasa.ac.at
E-Mail: hans.mayer at iiasa.at
Note: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it.
More information about the bind-users
mailing list