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

go get (on Windows) - executable file not found in $PATH #4465

Closed
gopherbot opened this issue Nov 29, 2012 · 5 comments
Closed

go get (on Windows) - executable file not found in $PATH #4465

gopherbot opened this issue Nov 29, 2012 · 5 comments
Milestone

Comments

@gopherbot
Copy link

by vincent@callanan.ie:

What steps will reproduce the problem?
Try "go get" on any github repository

Which operating system are you using?
Windows 7

Which version are you using?  (run 'go version')
1.0.3

Please provide any additional information below.
Also reported here:
https://groups.google.com/forum/#!msg/golang-nuts/C8-wqxzr1PI/0R9cM15v5rUJ

The explanation offered points to a Windows limitation.
But if Go is to be truly OS-agnostic, then this should be reported as a bug. All the
more so because, in general, Go absolutely rocks in Windows thanks to LiteIDEX :-)
@alexbrainman
Copy link
Member

Comment 1:

You didn't tell us what the problem is. Like in " ... What is the expected output? What
do you see instead? ...". Please, provide that. Thank you.
Alex

Status changed to WaitingForReply.

@gopherbot
Copy link
Author

Comment 2 by vincent@callanan.ie:

From either git, msys or normal cmd shell (in Windows 7)...
go get github.com/banthar/Go-SDL/sdl
Output...
# pkg-config --cflags sdl
exec: "pkg-config": executable file not found in %PATH%
Apologies in advance if I have missed something obvious.
It's just that git repositories are so common with Go.
And this problem has been mentioned before in groups as a Windows-specific issue.
I'm wondering if it is possible to make "go get" (and possibly other cmds) more uniform
across OSes, e.g. by leveraging the MinGW MSys shell in Windows.
But, on the whole, I am very impressed with my Golang/Windows experience thus far.

@gopherbot
Copy link
Author

Comment 3 by vincent@callanan.ie:

I just happened to notice that the respository was in fact successfully retrieved in
spite of the above error message. Is it possible that this error message is spurious or
just related to the specific package. If so, apologies for taking your time on this.

@minux
Copy link
Member

minux commented Dec 2, 2012

Comment 4:

it's because that package (sdl) uses pkg-config to get necessary cflags and ldfalgs
for compiler and linker, respectively.
you need to install pkg-config for windows, or you can just modify the source
with the real cflags and ldflags.

Status changed to Invalid.

@gopherbot
Copy link
Author

Comment 5 by vincent@callanan.ie:

Ah yes, all is clear now. I had Go "packages" on the brain and assumed that pkg-config
was an internal Go utility.
Many thanks for help

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
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

4 participants