如何安装Go

发布于 2024-10-08 04:13:32 字数 357 浏览 5 评论 0原文

我想安装 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

奶茶白久 2024-10-15 04:13:32

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

尐偏执 2024-10-15 04:13:32

安装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?

盗琴音 2024-10-15 04:13:32

要使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文