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?
Your
go
command probably differs from your go tool chain. Check if the right version of thego
tool is in thePATH
of your shell or try reinstalling go.The
go
tool calls tools like the compiler (e.g.6g
) and the linker. If thego
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:
They both should report the same version string.
See this and this post for related problems.