我正在研究Golang Heroku教程,我正迈出这一步: https://devcenter.heroku.com/articles/getting-started-with-go#prepare-the-app
执行以下操作时:
go get github.com/heroku/go-getting-started/cmd/...
我收到此错误:
# runtime/cgo
/tmp/go-build867338420/runtime/cgo/_obj/_cgo_defun.c:4 6c: No such file or directory: runtime.h
这是我的环境:
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/crystal/go/"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
TERM="dumb"
CC="gcc"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
CXX="g++"
CGO_ENABLED="1"
这可能是什么问题?