# libmaxminddb configure issue

**URL:** https://community.zeek.org/t/libmaxminddb-configure-issue/5428
**Category:** Development
**Tags:** development
**Created:** [August 23, 2018, 7:16pm UTC](https://community.zeek.org/t/libmaxminddb-configure-issue/5428 "2018-08-23T19:16:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Michael\_Dopheide](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Michael\_Dopheide](https://community.zeek.org/u/Michael_Dopheide)
#### Post date: [August 23, 2018, 7:16pm UTC](https://community.zeek.org/t/libmaxminddb-configure-issue/5428/1 "2018-08-23T19:16:02Z")

</div>

Johanna mentioned to me that libmaxminddb should be working now in master…

So far I haven’t been able to get ‘configure’ to find it, neither with the OS packages nor by installing libmaxminddb in /usr/local/ and specifying --with-geoip.

This is CentOS 7.5.

-Dop

---

<div class="post-metadata">

### Author: ![Michael\_Dopheide](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Michael\_Dopheide](https://community.zeek.org/u/Michael_Dopheide)
#### Post date: [August 23, 2018, 7:52pm UTC](https://community.zeek.org/t/libmaxminddb-configure-issue/5428/2 "2018-08-23T19:52:26Z")

</div>

More info:

_snip_

libmaxminddb: false \<------- THIS  
Kerberos: false  
gperftools found: true  
tcmalloc: true  
debugging: false  
jemalloc: false

---

<div class="post-metadata">

### Author: ![Daniel\_Thayer](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@Daniel\_Thayer](https://community.zeek.org/u/Daniel_Thayer)
#### Post date: [August 23, 2018, 8:10pm UTC](https://community.zeek.org/t/libmaxminddb-configure-issue/5428/3 "2018-08-23T20:10:45Z")

</div>

Could you try the following patch and let me know if it works for you:

--- a/CMakeLists.txt  
+++ b/CMakeLists.txt  
@@ -134,7 +134,7 @@ include\_directories(BEFORE

set(USE\_GEOIP false)  
find\_package(LibMMDB)  
-if (LibMMDB\_FOUND)  
+if (LIBMMDB\_FOUND)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set(USE\_GEOIP true)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;include\_directories(BEFORE ${LibMMDB\_INCLUDE\_DIR})  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list(APPEND OPTLIBS ${LibMMDB\_LIBRARY})

---

<div class="post-metadata">

### Author: ![Michael\_Dopheide](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Michael\_Dopheide](https://community.zeek.org/u/Michael_Dopheide)
#### Post date: [August 23, 2018, 8:29pm UTC](https://community.zeek.org/t/libmaxminddb-configure-issue/5428/4 "2018-08-23T20:29:56Z")

</div>

Yeah, I just figured that out myself and rebuilt…

bro -e “print lookup\_location(8.8.8.8);”  
[country\_code=US, region=, city=, latitude=37.751, longitude=-97.822]

Looks like you’ll have the same issue with LibKRB5\_FOUND (I didn’t look for others).

-Dop

---

<div class="post-metadata">

### Author: ![Jon\_Siwek](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Jon\_Siwek](https://community.zeek.org/u/Jon_Siwek)
#### Post date: [August 23, 2018, 9:58pm UTC](https://community.zeek.org/t/libmaxminddb-configure-issue/5428/5 "2018-08-23T21:58:49Z")

</div>

Thanks, does look like these wouldn't work as intended for CMake \<  
3.3, but I've merged Daniel's patch in to master now.

- Jon

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)
#### Post date: [May 6, 2022, 3:46pm UTC](https://community.zeek.org/t/libmaxminddb-configure-issue/5428/6 "2022-05-06T15:46:00Z")

</div>


