Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goenv install does not work before 1.15.12 #179

Closed
daisuke0925m opened this issue Jun 3, 2021 · 3 comments
Closed

goenv install does not work before 1.15.12 #179

daisuke0925m opened this issue Jun 3, 2021 · 3 comments

Comments

@daisuke0925m
Copy link

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?

@daisuke-3
Copy link

I have the same problem.

@yuki2006
Copy link

Probably only on M1 Mac.

I solved it by running it like this.

arch -arch x86_64 goenv install 1.15.5

@ChronosMasterOfAllTime
Copy link
Contributor

dupe of #106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants