gvm “go” 目前未安装。

huangapple go评论87阅读模式
英文:

gvm `The program 'go' is currently not installed`

问题

我刚刚使用go1.3安装了gvm,但是当我尝试运行go version时,出现了The program 'go' is currently not installed的错误消息。如何解决这个问题?

英文:

I just installed gvm with go1.3, but when I try to go version I have The program 'go' is currently not installed message. How to fix this?

答案1

得分: 2

gvm go1.3 --default修复了这个问题。

英文:

gvm go1.3 --default fixed this

答案2

得分: 0

在使用gvm(gvm installgvm use)后,请检查您的$PATH环境变量。它应该包括您的go安装文件夹中的bin/文件夹。例如:/usr/lib/go/bin

问题187报告:

> 目前,GVM假设它独自负责*_HOMEPATH环境变量,并将其路径放在首位。
由于默认情况下,GVM初始化是在最后执行的,这会覆盖用户可能设置的任何设置,在我的情况下,GROOVY_HOMEPATH被设置为我需要的值,然后GVM覆盖了这些设置。

> 因此,目前GVM与高级用户的设置不兼容。

英文:

Check your $PATH environment variable once you have used gvm (gvm install or gvm use).
It should include the bin/ folder of your go installation folder.
For instance: /usr/lib/go/bin

Issue 187 reports:

> Currently GVM assumes it is in sole charge of the *_HOME and PATH environment variables and puts it's paths first.
Since the default is to execute the GVM initialization last this overwrites any settings the user may have set up, in my case GROOVY_HOME and PATH are set as I need them then GVM overwrites the settings.

> Thus currently GVM does not "play nice" with a sophisticated users' set up.

huangapple
  • 本文由 发表于 2014年6月19日 17:36:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/24303388.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定