MaxMind-DB-Reader-php
MaxMind-DB-Reader-php copied to clipboard
Unable to locate maxminddb.h in custom installation
I'm trying ton install php + maxmind-db-reader in a custom path:
--prefix=/home/geoip/usr
- Install php-7.1.0 (success)
- Install libmaxminddb-1.2.0 (success)
- 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.
Better late than never... apt install libmaxminddb-dev
sburina you saved me ty :)
same issue...
first install https://github.com/maxmind/libmaxminddb/releases/tag/1.7.1