Heroku Go app crashes, version `GLIBC_2.32' not found, required by bin/main


So I have a very simple web app that just serves an html file right now, and my code works on my laptop, but not on heroku’s servers. There are no errors while compiling, but when I try to visit the site. the app crashes.
version `GLIBC_2.32′ not found
I checked the logs and it says that it needs 'GLIBC_2.32' which is not found. I’m very new to Heroku and making web apps, I don’t know how to install that dependency


Try building without cgo:

CGO_ENABLED=0 go build

CGO_ENABLED=0 disables calling C code (import "C"). This means that some features from the standard library or 3rd-party libraries might be unavailable or a pure Go implementation is used instead. What that means for your application in terms of functionality and performance really depends on what your application does. I suggest you run your tests before deploying to production 😉 In most cases it’ll work just fine.

More info about CGO_ENABLED:

Answered By – fnkr

Answer Checked By – Candace Johnson (GoLangFix Volunteer)

Leave a Reply

Your email address will not be published.