Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top