MaxMind-DB-Reader-php icon indicating copy to clipboard operation
MaxMind-DB-Reader-php copied to clipboard

Unable to locate maxminddb.h in custom installation

Open leo020588 opened this issue 8 years ago • 4 comments

I'm trying ton install php + maxmind-db-reader in a custom path: --prefix=/home/geoip/usr

  1. Install php-7.1.0 (success)
  2. Install libmaxminddb-1.2.0 (success)
  3. Install maxmind-db-reader-php-1.1.2 (error) /home/geoip/source/php/maxmind-db-reader-php-1.1.2/MaxMind-DB-Reader-php-master/ext/maxminddb.c:23:23: fatal error: maxminddb.h: No such file or directory #include <maxminddb.h>

Here are the step by step in a fresh debian 8.7.1 installation http://pastebin.com/0W2QCehx

When i try to install libmaxmind and maxmind-db-reader-php without --prefix=/home/geoip/usr works ok. But I want everything related to this installation to be located in /home/geoip/usr.

I also tried:

./configure \
	--includedir=/home/geoip/usr/include \
	--with-maxminddb \
	--with-php-config=/home/geoip/usr/bin/php-config

Same error. My guess I'm not setting path correctly or ./configure is not using --prefix or --includedir correctly.

leo020588 avatar Jan 17 '17 22:01 leo020588

Better late than never... apt install libmaxminddb-dev

sburina avatar Oct 24 '17 22:10 sburina

sburina you saved me ty :)

JontiH avatar May 08 '18 19:05 JontiH

same issue...

dbwodlf3 avatar Dec 08 '22 05:12 dbwodlf3

first install https://github.com/maxmind/libmaxminddb/releases/tag/1.7.1

dbwodlf3 avatar Dec 08 '22 05:12 dbwodlf3