删除golang,但去命令仍然有效? [英] Removed golang but go command still works?

查看:696
本文介绍了删除golang,但去命令仍然有效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Mac OSX Yosemite。

我试图从golang 1.4更新到golang 1.6。我卸载了golang,但是我注意到我仍然可以运行go命令 go version = go1.4.2 darwin / amd64 。为什么会这样?



这个指示并不是非常明确的IMO。他们说


  1. 删除现有的Go安装通常是/ usr / local / go
    (done)删除etc / paths .d / go

  2. 我通过运行 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

  1. To remove an existing Go installation This is usually /usr/local/go (done) Remove etc/paths.d/go
  2. 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,但去命令仍然有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆