[mapserver-users] Mapcache building question

jbo-ads jbo-ads at mailo.com
Mon Aug 31 00:00:52 PDT 2020


Hi Иван,

Actually, for compilation, CMake needs to locate 'httpd.h' header file 
and 'apxs' or 'apxs2' executables. You may need to install specific 
packages, e.g. on Ubuntu: 'apt-get install apache2-dev'.

Jérome.


Le 31/08/2020 à 08:44, Иван Иванов a écrit :
> Hi everyone!
> I have a trouble while trying to cmake mapcache. I've resolved all 
> dependencies problems, except one about APACHE, here is the output of 
> cmake command:
>
> ```
> - Could NOT find APACHE (missing:  APACHE_INCLUDE_DIR)
> CMake Error at CMakeLists.txt:45 (message):
>   APACHE library/component could not be found and is a mandatory 
> dependency
>
>     HINT:
>     - add the APACHE install directory to the CMAKE_PREFIX_PATH 
> variable 
> (-DCMAKE_PREFIX_PATH="/path/to/APACHE-install-dir;/path/to/other/dirs"
> Call Stack (most recent call first):
> ```
>
> Next i've added suggested parameter: ```cmake 
> -DCMAKE_PREFIX_PATH="/etc/apache2" ..```
> But nothing have changed - the same error remains.
>
> The contents of ```/etc/apache2``` are:
>
> ```
> -rw-r--r-- 1 root root  7263 июн 20  2018 apache2.conf
> drwxr-xr-x 2 root root  4096 авг 18 10:27 conf-available
> drwxr-xr-x 2 root root  4096 авг 18 10:28 conf-enabled
> -rw-r--r-- 1 root root  1782 июн 20  2018 envvars
> -rw-r--r-- 1 root root 31063 июн 20  2018 magic
> drwxr-xr-x 2 root root 12288 авг 18 11:52 mods-available
> drwxr-xr-x 2 root root  4096 авг 18 11:52 mods-enabled
> -rw-r--r-- 1 root root   344 авг 18 11:58 ports.conf
> drwxr-xr-x 2 root root  4096 авг 18 13:54 sites-available
> drwxr-xr-x 2 root root  4096 авг 18 13:54 sites-enabled
> ```
>
> What should i do to fix this problem?
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list