I build my Go Application in my Ubuntu 20.04 OS with go build -o myApp
.
When I run this app on Ubuntu Server 18.04, this error occurs:
/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ./myApp)
As I searched in stackoverflow, someone mentioned installing glibc 2.29
on the server. But someone else replied that this way is risky and may break OS.
Someone else suggested building App with glibc 2.27
.
How can I do this?