Missing development files for the GeoIP library when go to install the GoAccess, shown below:

Please install the GeoIP library. Assuming you are using SUSE, you can try:
# zypper search geoip
# zypper in GeoIP libGeoIP1
or you can install from source
$ wget https://github.com/maxmind/geoip-api-c/releases/download/v1.6.11/GeoIP-1.6.11.tar.gz
$ tar -xzvf GeoIP-1.6.11.tar.gz
$ cd GeoIP-1.6.11
$ ./configure
$ make
# make install
then try installing goaccess again.
Did it work?
Yeah, thank you so much.
BTW, Do you have any introduction of how does GoAccess work? Does it possible for us to know? I mean it is awesome, I do like it.
Ubuntu:
sudo apt install php5-geoip
To get config to work I had to also remove the --enable-geoip=legacy option that is listed on the goaccess download page.
@xenotropic For legacy you could try sudo apt-get install libgeoip-dev and for mmdb sudo apt-get install libmaxminddb-dev
on Centos 6: sudo yum -y --enablerepo=epel install geoip
On a shared host, FreeBSD, not sure what the correct way to set up.
% wget https://github.com/maxmind/geoip-api-c/releases/download/v1.6.11/GeoIP-1.6.11.tar.gz
% tar -xzvf GeoIP-1.6.11.tar.gz
% ./configure --prefix=$HOME/local/
% make
% make install
This went through without errors and I see $HOME/local/bin/geoiplookup and $HOME/local/bin/geoiplookup6 created. --prefix=$HOME/local/ is required for this shared host so that each user can install own programs.
Now if I do
% wget https://tar.goaccess.io/goaccess-1.2.tar.gz
% tar -xzvf goaccess-1.2.tar.gz
% ./configure --enable-utf8 --enable-geoip=legacy --prefix=$HOME/local/
I get
...
checking whether to build with rdynamic for GNU ld... yes
checking for GeoIP_new in -lGeoIP... no
configure: error:
*** Missing development files for the GeoIP library
Anybody know how it can be set up?
@mipon Can you please try running:
$ autoreconf -fiv
$ ./configure --enable-utf8 --enable-geoip=legacy
$ make
# make install
Thanks for the reply. autoreconf -ifv gives an error.
% autoreconf -ifv
autoreconf-2.69: Entering directory `.'
autoreconf-2.69: configure.ac: not using Gettext
autoreconf-2.69: running: aclocal --output=aclocal.m4t
Can't exec "aclocal": No such file or directory at /usr/local/share/autoconf-2.69/Autom4te/FileUtils.pm line 326.
autoreconf-2.69: failed to run aclocal: No such file or directory
% ./configure --enable-utf8 --enable-geoip=legacy
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for pthread_create in -lpthread... yes
checking build system type... x86_64-unknown-freebsd9.1
checking host system type... x86_64-unknown-freebsd9.1
checking whether to build with rdynamic for GNU ld... yes
checking for GeoIP_new in -lGeoIP... no
configure: error:
*** Missing development files for the GeoIP library
Inside of /usr/local/share looks like this.
% ls /usr/local/share
ImageMagick-6.8.0 certs gettext libtool misc sgml xml
aclocal compat ghostscript licenses namazu skel zsh
applications dict git-core locale nls smartmontools
autoconf-2.69 doc icons lynx_help pixmaps snmp
bash emacs icu maildrop python2.7 spamassassin
canna examples java man ri vim
% ls /usr/local/share/autoconf-2.69
Autom4te autoconf autoscan config.guess elisp-comp m4sugar missing
INSTALL autom4te.cfg autotest config.sub install-sh mdate-sh
% ls /usr/local/share/autoconf-2.69/Autom4te
C4che.pm ChannelDefs.pm Channels.pm Configure_ac.pm FileUtils.pm General.pm Getopt.pm Request.pm XFile.pm
% ls /usr/local/share/aclocal
argz.m4 glibc2.m4 intldir.m4 lcmessage.m4 libmcrypt.m4 longlong.m4 lt~obsolete.m4 progtest.m4 visibility.m4
codeset.m4 glibc21.m4 intlmacosx.m4 lib-ld.m4 libtool.m4 ltdl.m4 nls.m4 size_max.m4 wchar_t.m4
fcntl-o.m4 iconv.m4 intmax.m4 lib-link.m4 libxml.m4 ltoptions.m4 pkg.m4 stdint_h.m4 wint_t.m4
freetype2.m4 intdiv0.m4 inttypes-pri.m4 lib-prefix.m4 libxslt.m4 ltsugar.m4 po.m4 threadlib.m4 xsize.m4
gettext.m4 intl.m4 inttypes_h.m4 libcurl.m4 lock.m4 ltversion.m4 printf-posix.m4 uintmax_t.m4
@mipon Is there an aclocal under autoconf-2.69/?
@allinurl
@mipon Is there an aclocal under autoconf-2.69/?
% ls -af /usr/local/share/autoconf-2.69
. INSTALL autoscan config.sub m4sugar
.. autoconf autotest elisp-comp mdate-sh
Autom4te autom4te.cfg config.guess install-sh missing
@mipon You probably need to install autotools 2.69 as well
I hope I didn't miss an existing answer - but I keep getting
checking for GeoIP_new in -lGeoIP... no
configure: error:
*** Missing development files for the GeoIP library
on Mac OS (10.13.6).
I tried brew install goaccess --with-libmaxminddb as well as downloading the source and ./configure --enable-utf8 --enable-geoip
Using homebrew, I uninstalled goaccess and installed it again --with-libmaxminddb and now it works.
Just left me wondering when (how?) v1.3 would be available via homebrew
@Sergerant Please feel free to open an issue here to upgrade to v1.3. Thanks
FYI: for OpenSUSE 15.1, I had to zypper install libGeoIP-devel.
Most helpful comment
Please install the GeoIP library. Assuming you are using SUSE, you can try:
or you can install from source
then try installing goaccess again.