понедельник, 15 января 2018 г.

How to execute Linux binary on system with old glibc

If you compiled binary on your development system wich has newer OS with newer libc than on your target system, you can do old know trick with elf loader:

1. Copy ld-linux-x86-64.so.2 and whole /lib/x86_64-linux-gnu/ to home  on target system
2. Launch executable like this:

ld-linux-x86-64.so.2 --library-path ~/x86_64-linux-gnu ~/my_program args

1 комментарий: