如何安装Go

huangapple go评论100阅读模式
英文:

How to install 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.

答案1

得分: 1

Mercurial通常可以通过以下方式安装:

sudo apt-get install mercurial

该软件包位于universe仓库中,您可能尚未启用该仓库。如果需要完整的指南,请点击此处:

https://help.ubuntu.com/community/Mercurial

英文:

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

答案2

得分: 0

在安装了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 with easy_install?

答案3

得分: 0

为了使用Homebrew安装go,请在终端上运行以下命令:

$ brew install golang

要检查go的版本,请运行以下命令:

$ go version

要查看go的安装位置,请运行以下命令:

$ 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

huangapple
  • 本文由 发表于 2010年12月19日 15:34:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/4482040.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定