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

cmd/go: binary doesn't installed in $GOROOT/bin but not in $GOPATH/bin #12334

Closed
LuoPX-15510486969 opened this issue Aug 26, 2015 · 1 comment

Comments

@LuoPX-15510486969
Copy link

Here is my go env:
set GOARCH=amd64
set GOBIN=C:\Go\bin
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=D:\GoWork
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GO15VENDOREXPERIMENT=
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1

After running go install ,the binary istalled in in $GOROOT/bin but not in $GOPATH/bin.The fact should be $GOPATH/bin.so i don't know why.

@davecheney
Copy link
Contributor

This is because you have set GOBIN, please unset GOBIN, in my opinion you do not need to set it.

@mikioh mikioh changed the title binary doesn't installed in $GOROOT/bin but not in $GOPATH/bin cmd/go: binary doesn't installed in $GOROOT/bin but not in $GOPATH/bin Aug 29, 2015
@golang golang locked and limited conversation to collaborators Sep 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants