* fix: replace sh with shell fix replace terminal with shell fix replace node with js fix replace output with shell fix replace cs with csharp fix replace c++ with cpp fix replace c# with csharp fix replace javasctipt with js fix replace syntax with js fix replace unix with shell fix replace linux with shell fix replace java 8 with java fix replace swift4 with swift fix replace react.js with jsx fix replace javascriot with js fix replace javacsript with js fix replace c++ - with cpp fix: corrected various typos fix: replace Algorithm with nothing fix: replace xaml with xml fix: replace solidity with nothing fix: replace c++ with cpp fix: replace txt with shell fix: replace code with json and css fix: replace console with shell
32 lines
1.2 KiB
Markdown
32 lines
1.2 KiB
Markdown
---
|
|
title: Installing Go in Mac OS X using a tarball
|
|
---
|
|
### Installing Go in Mac OS X using a tarball
|
|
|
|
#### Link to tarball
|
|
|
|
You can get the link to the Mac OS tarball archive from the Latest Stable section of the [golang download page](https://golang.org/dl/).
|
|
|
|

|
|
|
|
#### Installation Process
|
|
|
|
> In this installation process we'll use the latest stable version as of this writing (go 1.9.1). For a newer or older version simply replace the link in the first step. Check the [golang download page](https://golang.org/dl/) to see what versions are currently available.
|
|
|
|
##### Installing Go 1.9.1
|
|
|
|
```
|
|
$ curl -O https://storage.googleapis.com/golang/go1.9.1.darwin-amd64.tar.gz
|
|
$ sudo tar -C /usr/local -xzf go1.9.1.darwin-amd64.tar.gz
|
|
$ export PATH=$PATH:/usr/local/go/bin
|
|
```
|
|
|
|
#### Check installation and version of go
|
|
|
|
To check if go was successfully installed, use:
|
|
|
|
```shell
|
|
$ go version
|
|
```
|
|
This should print to the console the version of go, while at the same time making sure the installation went smoothly.
|