Running in container: Cannot find libssl.so.1.1

Friends

I am running Debian-12 on host and in a Incus containr

I have built my executable on the host and copied it to the container

When I run it on the container I get the error:

"error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory"

I can build the programme and run it on the container.

I am perplexed.

This looks like you've built against libssl1.1 on the host, but don't have it installed on the container; as far as I can tell from a Debian package search for libssl, this implies that your host has a libssl-dev from Debian 11 or older installed, and thus something has built against libssl1.1 instead of libssl3.

You can enable vendored option on openssl crate to avoid having system dependency on it.

3 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.