duanbi3385 2013-08-10 20:07 采纳率: 100%
浏览 93
已采纳

如何将GOPATH链接到LiteIDE?

I've installed LiteIde and exported GOROOT and GOPATH in my .bashrc. When I use LiteIDE, the auto-completion works just fine, but it can't build/run my code. When I look at 'Manage GOPATH', the System GOPATH box is empty, and I can't type into it either.

Looking up online, the solution seems to be - 'link' the GOPATH and LiteIDE. How do I 'link' the two?

  • 写回答

2条回答 默认 最新

  • dongyi0210 2013-08-10 21:48
    关注

    Select the correct environment for you system from the drop-down:

    enter image description here

    For example, if you're on a Mac and used the package installer it would be "darwin64-local" on a 64 bit Mac.

    Then click on the "Go" folder icon on the left of the drop-down.

    enter image description here

    Click "Add Directory..." and add a folder path that contains src, pkg, and bin folders. Essentially what you set GOPATH to.

    Make sure you do not set GOROOT in .bashrc at all. You don't need to set GOROOT, really.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码