Skip to content

Unable to locate maxminddb.h in custom installation #47

Description

@leo020588

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions