[Tile-serving] [openstreetmap/mod_tile] Added compilation instructions for several distros (#252)

David Hummel notifications at github.com
Tue Aug 3 16:43:05 UTC 2021


@hummeltech commented on this pull request.

The addition of option `--preserve-env` is required so the exported environment variables are available.

> +  libjpeg-turbo-devel \
+  libmemcached-devel \
+  libpng-devel \
+  librados2-devel \
+  libtiff-devel \
+  libwebp-devel \
+  libxml2-devel \
+  postgresql-devel \
+  proj-devel \
+  sqlite-devel \
+  zlib-devel
+
+# Export `GDAL_DATA` & `PROJ_LIB` variables and create directories (if needed)
+export GDAL_DATA=$(gdal-config --datadir)
+export PROJ_LIB=/usr/share/proj
+mkdir -p ${GDAL_DATA} ${PROJ_LIB}

```suggestion
sudo --preserve-env mkdir -p ${GDAL_DATA} ${PROJ_LIB}
```

> +git clone https://github.com/openstreetmap/mod_tile.git /usr/local/src/mod_tile
+cd /usr/local/src/mod_tile
+./autogen.sh
+./configure
+make

```suggestion
sudo git clone https://github.com/openstreetmap/mod_tile.git /usr/local/src/mod_tile
cd /usr/local/src/mod_tile
sudo --preserve-env ./autogen.sh
sudo --preserve-env ./configure
sudo --preserve-env make
```

> +sudo ./configure BOOST_INCLUDES=/usr/include/boost169 BOOST_LIBS=/usr/lib64/boost169
+sudo JOBS=$(nproc) make
+sudo make install

```suggestion
sudo --preserve-env ./configure BOOST_INCLUDES=/usr/include/boost169 BOOST_LIBS=/usr/lib64/boost169
sudo --preserve-env JOBS=$(nproc) make
sudo --preserve-env make install
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/pull/252#pullrequestreview-721419393
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210803/78049d7a/attachment.htm>


More information about the Tile-serving mailing list