首页 > Linux > ubuntu go安装

ubuntu go安装

2012年12月28日 发表评论 阅读评论

What is Go about?
The Go programming language is an open source project to make programmers more productive. Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of run-time reflection. It’s a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language.

Go in Ubuntu
The Oneiric release of Ubuntu will include Go packages from the stable release series, and as an experiment these packages will be updated even after the stable release of Ubuntu is out. This enables people to remain using the stock packages even while other services and libraries evolve to use the current stable release of the language.

In addition to that, if you need to use a different release of Go (weekly, or from the development tip) or are using a previous release of Ubuntu, you can use packages from the PPA described below.

Availability
Oneiric includes the latest stable release of Go under the golang package name.

Within the PPA, the following packages are available:

golang-stable – Updated with the current stable release.
golang-weekly – Updated with the current weekly release.
golang-tip – Updated daily with the latest changes in the repository tip.
The PPA is available for the following releases of Ubuntu:

Ubuntu Precise (12.04)
Ubuntu Oneiric (11.10)
Ubuntu Natty (11.04)
Ubuntu Maverick (10.10)
Ubuntu Lucid (10.04 LTS)
and in the following architectures:

arm
i386
amd64
Instructions for the PPA
To install the packages, simply paste the following lines in a terminal:

sudo add-apt-repository ppa:gophers/go
sudo apt-get update
sudo apt-get install golang-stable # Or golang-weekly, or golang-tip
Documentation
Documentation for the stable release is always available at the official web site:

http://golang.org

Documentation for the weekly and tip releases may be found at:

http://weekly.golang.org

http://tip.goneat.org

gorun
gorun is available in all of the Ubuntu packages in the PPA above.

gorun was developed to facilitate experimentation with Go in a way familiar to developers of so-called “scripting languages”. gorun enables one to put a bang-line on a Go source file to make it runnable.

For more details on gorun, check its web page out:

https://wiki.ubuntu.com/gorun

分类: Linux 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.