英文:
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 install或gvm use)后,请检查您的$PATH环境变量。它应该包括您的go安装文件夹中的bin/文件夹。例如:/usr/lib/go/bin。
问题187报告:
> 目前,GVM假设它独自负责*_HOME和PATH环境变量,并将其路径放在首位。
由于默认情况下,GVM初始化是在最后执行的,这会覆盖用户可能设置的任何设置,在我的情况下,GROOVY_HOME和PATH被设置为我需要的值,然后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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论