<p>There is a paragraph <em>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:</em> under "Install the Go tools" header. It would be nice to append <em>"... or $HOME/.bashrc"</em> there. I didn't find the right place for this little issue on github , sorry.</p>
<hr/>**评论:**<br/><br/>dgryski: <pre><p>You can file bugs at <a href="https://github.com/golang/go/issues">https://github.com/golang/go/issues</a></p></pre>DigitalCthulhu: <pre><p>I was not sure that's the right place. Done. Thank you. </p></pre>dgryski: <pre><p>Most bugs are filed there. Only a few of the projects have their own tracker.</p></pre>pdffs: <pre><p><code>~/.bashrc</code> is bash-specific, whereas <code>/etc/profile</code> and <code>~/.profile</code> are shell-agnostic. The current recommendations are correct and complete I think.</p></pre>DigitalCthulhu: <pre><p>i've found solution here: <a href="https://wiki.debian.org/EnvironmentVariables" rel="nofollow">https://wiki.debian.org/EnvironmentVariables</a>
<em>"Graphical logins do not read a shell's startup files (/etc/profile and ~/.profile and so on) by default, but you as a user may choose to create a ~/.xsessionrc file which does this."</em>
so i created ~/.xsessionrc and added </p>
<pre><code>if [ -f ~/.profile ]; then
. ~/.profile
fi
</code></pre>
<p>and it works after logout and login again.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传