Error loading shared library libresolv.so.2: No such file or directory

Spread the love

Some Golang applications might return the error “Error loading shared library libresolv.so.2: No such file or directory”. To fix this, you need to install additional packages.

In Alpine, you need to install the gcompat package using apk. You can do this with the command: apk add gcompat

After the installation, try running the Golang application again.

Leave a Reply