Closed
Description
I get the following error on alpine:
WARNING: Error during initialization of module PCRE:
ErrorException("could not load library "libpcre2-8"
Error loading shared library libpcre2-8.so: No such file or directory")
fatal: error thrown and no exception handler available.
InitError(mod=:Sys, error=ErrorException("could not load library "libpcre2-8"
Error loading shared library libpcre2-8.so: No such file or directory"))
rec_backtrace at /julia-source/src/stackwalk.c:94
jl_throw at /julia-source/src/task.c:210
jl_module_run_initializer at /julia-source/src/toplevel.c:81
_julia_init at /julia-source/src/init.c:854
main at /julia-source/ui/repl.c:211
__libc_start_main at /lib/ld-musl-x86_64.so.1 (unknown line)
which happens after packing a tarball with make binary-dist
and then unpacking. Julia runs perfectly fine in the build directory.
Dockerfile:
FROM alpine:3.9.3
RUN apk add --update git make tar gcc python gfortran g++ perl
WORKDIR /julia-source
RUN git clone --progress https://github.com/JuliaLang/julia.git .
RUN echo 'override USE_BINARYBUILDER_UNWIND=0' >> Make.user
RUN make -j4
RUN make release
RUN make binary-dist
RUN mkdir -p /julia && tar -C /julia --strip-components=1 -xzf julia*.tar.gz
CMD ["/julia/bin/julia"]