Environment variables "GOBIN", "GOEXE" etc. not set

Bug #1490299 reported by Shashank VRSN Sabniveesu
2
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://golang.org/doc/install#testing for verification, the process fails.

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.

Revision history for this message
Shashank VRSN Sabniveesu (fossterer) wrote :
Revision history for this message
Dave Cheney (dave-cheney) wrote :

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.

Changed in golang (Ubuntu):
status: New → Invalid
Revision history for this message
Shashank VRSN Sabniveesu (fossterer) wrote :

https://bugs.launchpad.net/ubuntu/+source/golang/+bug/1490299/comments/2 refers just to a specific case seen in the original screenshot attached.

Changed in golang (Ubuntu):
status: Invalid → New
Revision history for this message
Shashank VRSN Sabniveesu (fossterer) wrote :

I performed a fresh installation of the package 'golang' on a new system.

I had to manually set GOPATH to point to my workspace which is understandable.

On executing 'go install', I receive the following notice

Revision history for this message
Dave Cheney (dave-cheney) wrote :

Go install takes a package path, not a file.

Please consult this document, https://golang.org/doc/code.html

This is not a channel for support request using Go, I recommend you ask on the irc channel, slack, or the golang-nuts mailing list.

Changed in golang (Ubuntu):
status: New → Invalid
Changed in golang (Ubuntu):
status: Invalid → In Progress
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.