英文:
how to make second development based on levigo
问题
我在levigo上进行了第二次开发,当我完成并尝试使用以下命令将其安装到我的系统上时:
go install github.com/AndreMouche/levigo/
它报告了以下错误:
# github.com/AndreMouche/levigo
/home/fun/software/go/go/pkg/tool/linux_amd64/6c: unknown flag -FVw
有人知道如何修复吗?
英文:
I made a second development on levigo, when I finished it and try to install it on my system with the following command:
go install github.com/AndreMouche/levigo/
it reports the following error:
# github.com/AndreMouche/levigo
/home/fun/software/go/go/pkg/tool/linux_amd64/6c: unknown flag -FVw
Does anybody know how to fix it?
答案1
得分: 1
你的go
命令可能与你的go工具链不同。
检查一下你的shell的PATH
中是否有正确版本的go
工具,或者尝试重新安装go。
go
工具调用像编译器(例如6g
)和链接器这样的工具。如果go
工具的版本与这些工具的版本不对应,那么这些工具可能会被调用使用它们不知道的参数,或者它们不再支持的参数。
使用以下命令检查版本:
$ go version
$ go tool 6g -V
它们应该都报告相同的版本字符串。
英文:
Your go
command probably differs from your go tool chain.
Check if the right version of the go
tool is in the PATH
of your shell or try reinstalling go.
The go
tool calls tools like the compiler (e.g. 6g
) and the linker. If the go
tool version
does not correspond with the version of these tools, said tools may get called with parameters
they don't yet know or they don't know anymore.
Check the version using these commands:
$ go version
$ go tool 6g -V
They both should report the same version string.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论