how to make second development based on levigo

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

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.

See this and this post for related problems.

huangapple
  • 本文由 发表于 2013年8月26日 20:20:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/18443934.html
匿名

发表评论

匿名网友

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

确定