[Tile-serving] [openstreetmap/osm2pgsql] Linux Alpine build error (#1078)

mmd notifications at github.com
Wed Feb 19 16:55:41 UTC 2020


You need to install the following additional packages:

* boost-dev        (or more specific ones, see install docs)
* postgresql-dev
* git

Also, explicitly setting LUA_LIBRARY seems to help in this case:

```
apk add --no-cache \
    make \
    g++ \
    cmake \
    zlib-dev \
    expat-dev \
    bzip2-dev \
    lua5.2-dev \
    boost-dev \
    postgresql-dev \
    git \
    \
    && mkdir /home/root \
    && wget -O /home/root/osm2pgsql.tar.gz "https://github.com/openstreetmap/osm2pgsql/archive/master.tar.gz" \
    && tar \
        --extract \
        --file /home/root/osm2pgsql.tar.gz \
        --directory /home/root \
    && rm /home/root/osm2pgsql.tar.gz \
    && cd /home/root/osm2pgsql-master \
    && mkdir build && cd build \
    && cmake -DLUA_LIBRARY=/usr/lib/lua5.2/liblua.so ..
```


-- 
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/osm2pgsql/issues/1078#issuecomment-588324692
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200219/1dc6ce95/attachment.htm>


More information about the Tile-serving mailing list