douchi7073 2017-02-06 20:10
浏览 69
已采纳

Golang 1.6.2无法在OSX Sierra上升级

I just upgraded to OSX Sierra from El Capitan. As such, I also need to upgrade my Golang compiler from 1.6.2 since it does not support Sierra.

I downloaded the latest 1.7.5 pkg installer and ran it, getting the prompt that it would remove previous versions of Go, and it said it was successful. But when I run go version it still says go1.6.2 darwin/amd6.

I have gone so far as to manually delete my /usr/local/bin/go directory and run the 1.7.5 installer again, but go version still says go1.6.2 darwin/amd6. I have also restarted my terminal window and even the full computer between attempts.

What is going wrong? How can I get my Go compiler to update?

  • 写回答

1条回答 默认 最新

  • dougou8458 2017-02-06 20:25
    关注

    I was incorrect in my question. I actually deleted usr/local/go, not usr/local/bin/go. I went back and deleted both directories manually, then ran the 1.7.5 package installer again. After restarting my terminal window, go version now shows me I am on 1.7.5 and it appears to be running correctly when I compile my code.

    Still interesting that the package installer did not do this automatically like it said it would. This could work as a solution if someone else is having the same problem.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog