[Tile-serving] [openstreetmap/osm2pgsql] Linux Alpine build error (#1078)
Federico Tibaldo
notifications at github.com
Tue Feb 18 22:56:21 UTC 2020
# Steps to reproduce
```
docker run --rm -it alpine sh
apk add --no-cache --virtual .osm2pgsql-build-deps \
make \
g++ \
cmake \
zlib-dev \
expat-dev \
bzip2-dev \
lua5.2-dev
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/
cd /home/root/osm2pgsql-master/
mkdir build && cd build
cmake ..
```
# Expected output
Probably not an error.
# Actual output
An error.
Please mind: installing `git` does not resolve the issue.
```
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building osm2pgsql 1.2.0
-- Building in C++11 mode
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Looking for include file termios.h
-- Looking for include file termios.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Found ZLIB: /lib/libz.so (found version "1.2.11")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Protozero: /home/root/osm2pgsql-master/contrib/protozero/include (found suitable version "1.6.8", minimum required is "1.6.3")
-- Found EXPAT: /usr/lib/libexpat.so (found version "2.2.9")
-- Found BZip2: /usr/lib/libbz2.so (found version "1.0.8")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found Osmium: /home/root/osm2pgsql-master/contrib/libosmium (found suitable version "2.15.4", minimum required is "2.14")
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Lua (missing: LUA_LIBRARIES) (found version "5.2.4")
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/FindLua.cmake:167 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:121 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/root/osm2pgsql-master/build/CMakeFiles/CMakeOutput.log".
```
Yes. Lua5.2 libraries are installed:
```
/home/root/osm2pgsql-master/build # apk list | grep lua5.2-libs
lua5.2-libs-5.2.4-r7 x86_64 {lua5.2} (MIT) [installed]
```
Am I missing any other build dependency? Do I have to perform any additional preliminary step?
Any help is highly appreciated. Thank you!
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200218/2be6ae44/attachment.htm>
More information about the Tile-serving
mailing list