doulao2128
2013-08-26 12:20
浏览 16
已采纳

如何基于levigo进行二次开发

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?

图片转代码服务由CSDN问答提供 功能建议

我在 levigo ,当我完成它并尝试使用以下命令将其安装到我的系统上:

  go install github.com/AndreMouche/  levigo / 
   
 
 

它报告以下错误:

 #github.com/AndreMouche/levigo
/ 主页/娱乐/软件/ go / go / pkg / tool / linux_amd64 / 6c:未知标志-FVw 
   
 
 

有人知道如何解决此问题吗?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doushou5761 2013-08-26 15:57
    已采纳

    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.

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题