Environment variables "GOBIN", "GOEXE" etc. not set
Bug #1490299 reported by
Shashank VRSN Sabniveesu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
golang (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
If one is to install 'golang' from ubuntu repositories but follow http://
Having to set "GOPATH" manually is acceptable since its a user's preference (also, it is documented in the above URL).
No clue is given to the user that "GORUN" and other required variables are to be set manually
Affected Behaviour: Cannot run any Go program.
Changed in golang (Ubuntu): | |
status: | Invalid → In Progress |
status: | In Progress → Invalid |
To post a comment you must log in.
GORUN, GOBIN, GOEXE etc are optional environment variables and are not required to use Go. In fact, you really shouldn't set them
Looking at the screenshot you provided the reason your program did not compile is you have a syntax error, you want fmt.Printf (capital P).
Please feel free to reopen this bug if you think I have not addressed your problem. You may also find it useful to drop by irc, #golang on freenode, the slack channel, or the golang-nuts mailing list.