goenv
goenv copied to clipboard
goenv install does not work before 1.15.12
Hi , I tried install multiple versions with goenv however it did not work.
% goenv install 1.11.4
# return nothing
% goenv install 1.15.12
# return nothing
Tried new versions 1.16~
% goenv install 1.16.4
#return installing logs
% goenv install 1.16.3
#return installing logs
it was success.
this is my zshrc
export GOENV_ROOT="$HOME/.goenv"
export PATH="$GOENV_ROOT/bin:$PATH"
eval "$(goenv init -)"
export PATH="$GOROOT/bin:$PATH"
export PATH="$PATH:$GOPATH/bin"
and go env
GO111MODULE="on"
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/usernam/Library/Caches/go-build"
GOENV="/Users/usernam/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/usernam/go/1.16.4/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/usernam/go/1.16.4"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/usernam/.goenv/versions/1.16.4"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/usernam/.goenv/versions/1.16.4/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.16.4"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/usernam/projects/clones/graphql-redis-realtime-chat/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/9_/3gjs72n548j1wd33w1fky6tr0000gn/T/go-build1064763423=/tmp/go-build -gno-record-gcc-switches -fno-common"
Would you tell me how to solve this problem?
I have the same problem.
Probably only on M1 Mac.
I solved it by running it like this.
arch -arch x86_64 goenv install 1.15.5
dupe of #106