문제

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 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top