Now I just get a segmentation fault when I try to run it.
Edit
This could be because the provided libraries are typically just symlinks to the actual binaries. On my system, performing the command locate libc.so.6
spits out quite a few of locations, however, the important one is “/lib/x86_64-linux-gnu/libc.so.6”. Performing the command results in the actual binary that is used.
~$ readlink /lib/x86_64-linux-gnu/libc.so.6
libc-2.27.so
Maybe when you package the libraries, include the binaries and create symlinks that match the expected name? Or rename the binaries to the expected name?