本文介绍了删除golang,但去命令仍然有效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在运行Mac OSX Yosemite。
我试图从golang 1.4更新到golang 1.6。我卸载了golang,但是我注意到我仍然可以运行go命令 go version = go1.4.2 darwin / amd64
。为什么会这样?
这个指示并不是非常明确的IMO。他们说
- 删除现有的Go安装通常是/ usr / local / go
(done)删除etc / paths .d / go - 我通过运行
go version go1.4.2编辑了bash,达尔文/ amd64
解决方案
我运行了 source〜/ .bash_profile
变量。
I'm running Mac OSX Yosemite.
I'm trying update from golang 1.4 to golang 1.6. I uninstalled golang but I noticed I could still run the go command go version = go1.4.2 darwin/amd64
. Why is this so?
The directions aren't super clear IMO. They say
- To remove an existing Go installation This is usually /usr/local/go(done) Remove etc/paths.d/go
- I edited the bash by running
go version go1.4.2 darwin/amd64
解决方案
I ran source ~/.bash_profile
and that updated the env variables.
这篇关于删除golang,但去命令仍然有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!