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: no install location for directory error - .. out side GOPATH #8457

Closed
gopherbot opened this issue Jul 31, 2014 · 5 comments
Closed
Milestone

Comments

@gopherbot
Copy link

by damodhanaraj:

Hi,

i found an issue like "go install: no install location for directory error - .. out
side GOPATH" while compling my go programme.

go version go1.3 windows/386

replication steps
1) installed go1.3 windows/386 in my machine
2) downloaded gogo executable file and stored in c:\mygo\
3) created 3 folders namely bin, pkg, src under c:\mygo\ folder
4) created a sample programme using gogo and stored as sample.go under C:\mygo\src
5) complied that from gogo and it shows the below issue

"go install: no install location for directory error - .. out side GOPATH"

i tried the same at C:\Go\src it shows the same error.


Please provide the details of:
1) how to install in windows
2) how to configure go for windows
3) how to write a go programme and where to store that programme
4) how to execute/compile that programme
5) how to install that programme in client machine
6) Is there any good tool with ide for go development? if yes please provide
7) please provide the material for GO programming


Many Thanks

Regards
Dhanaraj Damodaran
@cznic
Copy link
Contributor

cznic commented Jul 31, 2014

Comment 1:

Please show some code and the exact commands issued. It's not clear enough, but the
descriptions seems to indicate that you might be trying to import an executable file -
which would be a mistake.
(Questions and support requests belong to the mailing list, not to the issue tracker.)
#WAI

@gopherbot
Copy link
Author

Comment 2 by damodhanaraj:

it shows the error "go install: no install location for directory error - .. out side
GOPATH" on compiling.
please refer the below replication steps for this issue:
1) installed go1.3 windows/386 in my machine
2) downloaded gogo executable for go(gogo.exe from
http://www.mikeparr.info/goinstall.html) file and stored in c:\mygo\
3) created 3 folders namely bin, pkg, src under c:\mygo\ folder
4) created a sample programme using gogo window and stored as sample.go under C:\mygo\src
5) complied that from gogo window and it shows the below issue
"go install: no install location for directory error - .. out side GOPATH"
Refer the attached error.bmp file for this issue

@griesemer
Copy link
Contributor

Comment 3:

Labels changed: added repo-main.

@bradfitz bradfitz removed the new label Dec 18, 2014
@rsc rsc self-assigned this Apr 10, 2015
@rsc rsc added this to the Go1.5 milestone Apr 10, 2015
@rsc rsc changed the title go install: no install location for directory error - .. out side GOPATH cmd/go: no install location for directory error - .. out side GOPATH Apr 10, 2015
@rsc rsc removed the repo-main label Apr 14, 2015
@gopherbot
Copy link
Author

CL https://golang.org/cl/9258 mentions this issue.

@willoller
Copy link

I would like to add to the command output something like:

go install: no install location for directory *** outside GOPATH
-> This is probably happening because the directory you are trying to install
-> is outside your GOPATH ({$GOPATH}), or your GOPATH is not
-> set up correctly.
-> See: http://golang.org/doc/code.html#Organization for more information.

If I am missing the point or something please educate me I am go noob :)

@rsc rsc closed this as completed in 4f4da07 Jun 18, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
@rsc rsc removed their assignment Jun 23, 2022
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

6 participants