Sample Header Ad - 728x90

Deploying applications in old distributions compiled in the new distribution

0 votes
1 answer
507 views
I have a binary built on ubuntu 20 (in a docker container FROM ubuntu:latest) What if I want to run this binary, for example, in ubuntu 16? I know that it is possible to face the fact that the version libc.so in ubuntu 16 is not compatible with libc.so in ubuntu 20, the binary was linked to, and I will get an error at runtime something like GLIBC symbols is not found. What is the best practices in such cases? Static linkage with sys libs and building on each target platform are not considered. How about providing all the system shared libraries (libc, libpthread, ld.so and so on) from the build platform to the target platform? And my application running in ubuntu 16 will use libc from ubuntu 20, with which it was linked. (I will specify the path to the desired libc via LD_LIBRARY_PATH, for example) What problems can I face with this approach?
Asked by ibse (371 rep)
Jul 10, 2021, 09:17 AM
Last activity: Jul 11, 2021, 03:15 AM