You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
748 B
27 lines
748 B
10 years ago
|
### Build Dependencies
|
||
10 years ago
|
This installation document assumes Ubuntu 12.04 or later on x86-64.
|
||
10 years ago
|
|
||
10 years ago
|
##### Install Git and GCC
|
||
|
```sh
|
||
|
$ sudo apt-get install git build-essential
|
||
|
```
|
||
|
|
||
10 years ago
|
##### Install YASM
|
||
10 years ago
|
```sh
|
||
|
$ sudo apt-get install yasm
|
||
|
```
|
||
|
|
||
10 years ago
|
##### Install Go 1.3+
|
||
|
Download Go 1.3+ from [https://golang.org/dl/](https://golang.org/dl/) and extract it into ``${HOME}/local`` and setup ``${HOME}/mygo`` as your project workspace folder.
|
||
|
For example:
|
||
10 years ago
|
```sh
|
||
10 years ago
|
$ wget https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz
|
||
10 years ago
|
$ mkdir -p ${HOME}/local
|
||
10 years ago
|
$ tar -C ${HOME}/local -xzf go1.4.linux-amd64.tar.gz
|
||
10 years ago
|
$ export PATH=$PATH:${HOME}/local/go/bin
|
||
10 years ago
|
$ export GOROOT=${HOME}/local/go
|
||
10 years ago
|
$ mkdir -p $HOME/mygo
|
||
10 years ago
|
$ export GOPATH=$HOME/mygo
|
||
|
$ export PATH=$PATH:$GOPATH/bin
|
||
|
```
|