Certain packages do not precompile in Julia Docker

Cheers,

My docker container uses several packages and ran smoothly up to the point I added package ImageInTerminal to the environment. Apparently, the container needs an artifact file that is not being pulled/created. Error message follows below. Any hint is appreciated, as well as a brief explanation of what an artifact is. Thanks in advance.

app-1  | The following 1 direct dependency failed to precompile:
app-1  | 
app-1  | ImageInTerminal [d8c32880-2388-543b-8c61-d9f865259254]
app-1  | 
app-1  | Failed to precompile ImageInTerminal [d8c32880-2388-543b-8c61-d9f865259254] to "/root/.julia/compiled/v1.10/ImageInTerminal/jl_GLbPMd".
app-1  | ERROR: LoadError: InitError: could not load library "/root/.julia/artifacts/3544c0bb3e72c99ebfe976d6ee4072496237241f/lib/libsixel.so"
app-1  | Error loading shared library libjpeg.so.62: No such file or directory (needed by /root/.julia/artifacts/3544c0bb3e72c99ebfe976d6ee4072496237241f/lib/libsixel.so)

Julia Docker based on Linux Alpine misses the package for compilation. Using a Debian version instead, such as bookworm, is a safer path.

1 Like

You didn’t mention before you were using the Apline image, but you’re likely running into Problems with musl's ldso on 1.6 · Issue #40556 · JuliaLang/julia · GitHub

1 Like