-
Notifications
You must be signed in to change notification settings - Fork 18k
doc/install: mention how to update environment variables before testing the installation #24756
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
Comments
How so? Putting environments in |
If this is about you having modified |
If your |
I've found solution here: https://wiki.debian.org/EnvironmentVariables
So i created ~/.xsessionrc and added
And it works after logout and login again. Should I remove this issue from list as my mistake? |
It would still be good to mention the bit about logging out and in (or sourcing the file again). Would you like to send a PR ? Since you encountered it first hand, you can probably write in a manner suited for people who can stumble into this issue again. |
Probably someone more experienced can do it. Text to append on page (for Linux section):
|
I think the advice should be more generic, or link to a page on the internet covering common issues with shell profile files. Otherwise, this advice is only going to apply to certain Linux systems that use X11, potentially further confusing users that don't have that setup. |
Agree. I think it would be better someone Linux seasoned and with fluent english write this text because I'm new to Linux. |
Change https://golang.org/cl/105557 mentions this issue: |
Debian based distros now have /etc/profile.d. The above is written for go-1.9.2 using gcc-4.7.1 , and I cited therein V. Batts' .SlackBuild, which obviously in 2018 has been updated. Linux, Mac OS X, and FreeBSD tarballs Using the path for the go executable from the above section, V. Batts
Such an executable shell script can also be sourced.
|
https://github.com/golang/go/wiki/SettingGOPATH Perhaps the idea for the use of a shell's rc file came from the above Wiki Page. |
go1.10.1 linux/amd64
debian 9
installing go
editing $HOME/.profile doesn't help but $HOME/.bashrc does.
There is a paragraph
"Add /usr/local/go/bin to the PATH environment variable. You can do this by adding this line to your /etc/profile (for a system-wide installation) or $HOME/.profile"
under "Install the Go tools" header.
It would be nice to append "... or $HOME/.bashrc" there.
https://golang.org/doc/install
The text was updated successfully, but these errors were encountered: