Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to locate maxminddb.h in custom installation #47

Open
leo020588 opened this issue Jan 17, 2017 · 4 comments
Open

Unable to locate maxminddb.h in custom installation #47

leo020588 opened this issue Jan 17, 2017 · 4 comments
Labels

Comments

@leo020588
Copy link

leo020588 commented Jan 17, 2017

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.

@sburina
Copy link

sburina commented Oct 24, 2017

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

@JontiH
Copy link

JontiH commented May 8, 2018

sburina you saved me ty :)

@dbwodlf3
Copy link

dbwodlf3 commented Dec 8, 2022

same issue...

@dbwodlf3
Copy link

dbwodlf3 commented Dec 8, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

5 participants