goaccess: Freebsd 11.2 - Missing development files for libmaxminddb library
Hello,
I installed freebsd 11.2 and i am trying to compile goaccess 1.3. My configure command is:
sudo ./configure --enable-geoip=mmdb
However i am getting this error:
checking for MMDB_open in -lmaxminddb... no
configure: error:
*** Missing development files for libmaxminddb library.
The pkg info for this library is:
$ sudo pkg install libmaxminddb
you have mail
Password:
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed
Do you know when goaccess is failing to compile it?
Thanks
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 5
- Comments: 40 (16 by maintainers)
I have successfully installed by following this guide
Build from GitHub (Development)
For Ubuntu there is no need for additional PPA, just:
apt install libmaxminddb-dev
Please try:
Was trying to compile on FreeBSD 11.2, needed support for Tokyo Cabinet, and had the same issues as @andygr. Hope this helps someone
@allinurl Finally worked for me with FreeBSD 11.2
Install dependencies: sudo pkg install autoconf libtool automake gettext
Update all ports https://www.unixmen.com/how-to-update-ports-in-freebsd/ sudo portsnap fetch sudo portsnap extract sudo portsnap fetch update
remove all existing goaccess sudo pkg remove goaccess
install goaccess via ports cd /usr/ports/sysutils/goaccess/ && make install clean
download mmdb from maxmind DB
copy mmdb into a folder and edit the config. In the config write the path for the DB
@andygr Have you reached out to the port maintainer about this? I see a patch for maxminddb.h listed.
Haven’t tried this myself but the port maintainer may have this solved.
https://www.freshports.org/sysutils/goaccess
@allinurl Would any of those patches be beneficial to merge into the project to make packaging and usage easier? May not be applicable as they may be FreeBSD specific, so just curious. I am not associated with the port either for clarity.
I found this:
https://www.gnu.org/software/gettext/FAQ.html#integrating_undefined
There is a section for: I get a linker error “undefined reference to libintl_gettext” and they explain about this error
It looks like there may already be a port/package for this. Is this something you can use instead of building it yourself? If not the Makefile there may point you in the right direction.
https://www.freshports.org/sysutils/goaccess/
Edit - Too slow @allinurl beat me to it. The Makefile looks like it just uses a variable for the path for LDFLAGS but there may be a second variable that needs set.