maxmind / mod_maxminddb

MaxMind DB Apache Module
https://maxmind.github.io/mod_maxminddb/
Apache License 2.0
126 stars 28 forks source link

libmaxminddb in different location #83

Closed monwolf closed 4 years ago

monwolf commented 4 years ago

Good Morning,

I have a custom apache/openssl/libxml2 install on our servers so libmaxmind should be packetized as the same way.

I've been suscessfull installing libmaxmind on /usr/local/libmaxminddb, but I haven't find a solution to link mod_maxminddb againt the library under /usr/local/libmaxminddb.

I tried changing the LD_LIBRARY_PATH, the --includedir, but always get the same error:

checking for maxminddb.h... no
checking for MMDB_lib_version in -lmaxminddb... no
configure: error: libmaxminddb was not found

Could you help me?

monwolf commented 4 years ago

The solution is change the CFLAGS, CPPFLAGS and LDFLAGS as follows:

export CFLAGS="$CFLAGS -I/usr/local/libmaxminddb/include" CPPFLAGS="$CPPFLAGS -I/usr/local/libmaxminddb/include" LDFLAGS="$LDFLAGS -L/usr/local/libmaxminddb/lib"