如何安装Go
我想安装 Go。我准备了支持语言的系统。但遗憾的是,我无法按照此命令找到 Bison 和 libc6-dev。
sudo apt-get install bison ed gawk gcc libc6-dev make
然后我仍然找不到适合Ubuntu 8.10的Mercurial,遵循这个命令。
apt-get install python-setuptools python-dev build-essential
所以请大家指导一下我应该怎么做才能完整安装Go。我的操作系统是 Ubuntu 版本 8.10。请注意,您可以发布直接链接让我获取数据包/文件。
I want to install Go. I prepared system for support language. But sadly, I can't find Bison and libc6-dev following this command.
sudo apt-get install bison ed gawk gcc libc6-dev make
Then I still can't find the suitable Mercurial for Ubuntu 8.10, which is followed this command.
apt-get install python-setuptools python-dev build-essential
Therefore everyone please guide what I should do in order to install Go completely. My OS is Ubuntu version 8.10. Notice you can post the direct link for me to get packets/files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Mercurial 通常可以使用
sudo apt-get install Mercurial 进行安装。
该软件包位于 Universe 中,您可能尚未启用它。如果您需要,可以在此处获取完整指南:
https://help.ubuntu.com/community/水星
Mercurial can typically be installed with
sudo apt-get install mercurial
The package is in universe, which you may not have enabled. The full guide, if you need it, is available here:
https://help.ubuntu.com/community/Mercurial
安装setuptools等后,go安装说明说你应该使用easy-install安装mercurial,即
sudo easy_install Mercurial
。您在使用easy_install
时遇到问题吗?After installing setuptools et al., the go installation instructions say that you should install mercurial with easy-install, i.e.
sudo easy_install mercurial
. Are you having trouble witheasy_install
?要使用 Homebrew 安装 go,请在终端上运行以下命令:
$brew install golang
要检查 go 的版本,请运行以下命令:
$ go version
要查看location run:
$ which go
卸载 go :
$ sudo apt-get remove golang-go
In order to install go with Homebrew run the following command on the terminal:
$ brew install golang
To check the version of go run the following command:
$ go version
To see the location run:
$ which go
To uninstall go :
$ sudo apt-get remove golang-go