There seem to be some issues installing ConTeXt Standalone on Alpine. Here's a Dockerfile for reproducibility.

FROM python:3.6-alpine3.7
RUN apk --no-cache add libc6-compat rsync
RUN mkdir /context && cd /context \
  && wget http://minimals.contextgarden.net/setup/first-setup.sh \
  && sh ./first-setup.sh --modules=all --engine=luatex

This fails, and the cause of the error can be seen with ldd:

/context/bin # ldd luatex
    /lib64/ld-linux-x86-64.so.2 (0x7fd05109c000)
    libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7fd05109c000)
    libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fd05109c000)
    libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fd05109c000)
Error loading shared library ld-linux-x86-64.so.2:
    No such file or directory (needed by luatex)
Error relocating luatex: __rawmemchr: symbol not found
Error relocating luatex: __isnan: symbol not found

Alpine uses musl, which seems to not work against this build of luatex.

Has anyone gotten ConTeXt standalone working on Alpine?

  • 1
    Currently, you have to compile the binaries yourself and replace them after you downloaded ConTeXt. I'm actually working on getting musl support into ConTeXt standalone. TeXlive 2018 will have musl support (tug.org/texlive/pretest.html scroll all the way down to Platforms). Apr 8 '18 at 21:22
  • 1
    Also, crosspost on the mailing list: mailman.ntg.nl/pipermail/ntg-context/2018/091226.html Apr 8 '18 at 21:28
  • Do you want to self-answer your question, now that musl support has arrived? Apr 17 '18 at 5:53
  • @HenriMenke Please feel free if you wish, but I'm happy to as well. Apr 17 '18 at 11:03

As Henri Menke noted in the comments, this has been fixed and ConTeXt standalone is now installable on Alpine Linux.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.