duanbi5906 2017-10-11 16:50
浏览 783

编译:“ go1.9”版本与go工具“ go1.9.1”版本不匹配

I am getting this error when I tried to run an example helloworld code I got onlie.

compile: version "go1.9" does not match go tool version "go1.9.1"

My computer has go1.9.1. What does the error mean and how can I fix this?

  • 写回答

7条回答 默认 最新

  • drwdvftp423507 2017-10-11 18:25
    关注

    If you are installing using OSX homebrew you may need to set the $GOROOT in your .bashrc, .zshrc, etc:

    export GOROOT=/usr/local/opt/go/libexec
    

    I had the same error this morning when I updated from 1.9 -> 1.9.1 though according to several post the $GOROOT shouldn't have to be set and I had not set it until today. This may be a bug?

    评论

报告相同问题?

悬赏问题

  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发