[MapServer-users] Compiling mapserver with php in user directory

j.l.h.hartmann at gmail.com j.l.h.hartmann at gmail.com
Tue Oct 17 12:24:06 PDT 2023


Hi all,

 I am trying to compile MapServer with all dependencies in a separate user-directory. Everything has been compiled with —prefix=$INSTALLBIN.  PHP has also been compiled into that directory, but I don't get MapServer to use it. It compiles against the system-php, but that is another version than the compiled one. I call CMAKE with the following options:

           ...
            -DGDAL_LIBRARY=$INSTALLBIN/lib/libgdal.so \
            -DGDAL_INCLUDE_DIR=$INSTALLBIN/include \
            ...

I removed the sysem-PHP, and added -DPHP_INCLUDE_DIR=$INSTALLBIN/include/php \, but that doesn't work, and I cannot find the PHP-library to add.

CMAKE ends with the message:  "Configuring incomplete, errors occurred!", without giving the precise errors. In the error log I get messages of missing "strrstr", "strlcat" and strlcpy".

Can you help me?

Jan Hartmann
Amsterdam


More information about the MapServer-users mailing list