You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go version go1.1.2 windows/amd64
(Also happens in go version go1.1 windows/amd64)
GOPATH (Cygwin):
c:\dean\golang\go3p:c:\dean\courses\algorithms-stanford\design.and.analysis.of.algorithms.1\programming-questions\common\code\golang
The file algoutils.go is in the directory
c:\dean\courses\algorithms-stanford\design.and.analysis.of.algorithms.1\programming-questions\common\code\golang\src\algoutils
From that directory run
go install algoutils.go
go install: no install location for directory
C:\dean\courses\algorithms-stanford\design.and.analysis.of.algorithms.1\programming-questions\common\code\golang\src\algoutils
outside GOPATH
I get the same error if I run from Cygwin or if I run from DOS. The DOS GOPATH is
GOPATH=c:\dean\golang\go3p;c:\dean\courses\algorithms-stanford\design.and.analysis.of.algorithms.1\programming-questions\common\code\golang
In both cases (DOS and Cygwin) the command "go install algoutils" works. It's
just an issue of the algoutils.go file is given as the input.
The text was updated successfully, but these errors were encountered:
Slight correction. The GOPATH in Cygwin was
c:\dean\courses\algorithms-stanford\design.and.analysis.of.algorithms.1\programming-questions\common\code\golang
Only one directory in the GOPATH.
When creating the GOPATH in .bashrc for Cygwin the directories have to be separated by a
semi-colon not a colon since the DOS conventions have to be followed.
This doesn't change the issue with using a .go file as the argument to "go install".
The issue is a bad error message. "go install" takes a package path as its argument, not
.go source files. The entire concept of installation is tied to package paths.
by dean.w.schulze:
The text was updated successfully, but these errors were encountered: