How to compile First of all, get inside the src/ directory. Compile the executable with all the needed libraries inside it: CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o saml-idp .