doumenshi1475 2014-10-02 19:09
浏览 27
已采纳

安装从源转到自定义前缀

I have a Go installation in /usr, which is old (yum). If I download the source from the Golang site and run the all.bash, the binaries and libraries are installed in the downloaded dir.

With a usual Makefile, it's easy to set PREFIX, can this be done in the all.bash file somewhere?

  • 写回答

1条回答 默认 最新

  • 普通网友 2014-10-02 19:12
    关注

    You don't need to "install" it anywhere as long as you have GOPATH set and add $GOROOT/bin to your path.

    export PATH="$PATH:/usr/src/go/bin"
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于某款2.13寸墨水屏的问题
  • ¥15 obsidian的中文层级自动编号
  • ¥15 同一个网口一个电脑连接有网,另一个电脑连接没网
  • ¥15 神经网络模型一直不能上GPU
  • ¥15 pyqt怎么把滑块和输入框相互绑定,求解决!
  • ¥20 wpf datagrid单元闪烁效果失灵
  • ¥15 券商软件上市公司信息获取问题
  • ¥100 ensp启动设备蓝屏,代码clock_watchdog_timeout
  • ¥15 Android studio AVD启动不了
  • ¥15 陆空双模式无人机怎么做