2015-01-23 17:25:24 -08:00
## Ubuntu (Kylin) 14.04
2014-11-30 13:55:10 -08:00
### Build Dependencies
2015-05-27 17:43:39 -07:00
This installation document assumes Ubuntu 14.04+ on x86-64 platform.
2014-11-30 13:55:10 -08:00
2015-04-10 21:18:35 -07:00
##### Install Git, GCC
2014-12-04 01:56:01 -08:00
```sh
2015-04-10 21:18:35 -07:00
$ sudo apt-get install git build-essential
2014-12-04 01:56:01 -08:00
```
2014-12-04 01:18:26 -08:00
##### Install YASM
2015-01-06 20:50:58 -08:00
2015-01-23 17:25:24 -08:00
Minio depends on Intel ISAL library for erasure coding, ISAL uses Intel AVX2 processor instructions, to compile these files one needs to install ``yasm`` which supports AVX2 instructions. AVX2 support only ended in ``yasm`` from version ``1.2.0``, any version below ``1.2.0` ` will throw a build error.
2015-01-06 20:50:58 -08:00
2014-11-30 13:55:10 -08:00
```sh
$ sudo apt-get install yasm
```
2015-01-23 17:25:24 -08:00
##### Install Go 1.4+
2015-05-27 17:43:39 -07:00
Download Go 1.4+ from [https://golang.org/dl/ ](https://golang.org/dl/ ).
2015-01-23 17:25:24 -08:00
2015-05-27 17:43:39 -07:00
```sh
$ wget https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz
$ mkdir -p ${HOME}/bin/
$ mkdir -p ${HOME}/go/
$ tar -C ${HOME}/bin/ -xzf go1.4.linux-amd64.tar.gz
```
##### Setup GOROOT and GOPATH
2015-01-23 17:25:24 -08:00
2015-05-27 17:43:39 -07:00
Add the following exports to your ``~/.bashrc` `. Environment variable GOROOT specifies the location of your golang binaries
and GOPATH specifies the location of your project workspace.
2015-01-23 17:25:24 -08:00
2015-05-27 17:43:39 -07:00
```sh
$ export GOROOT=${HOME}/bin/go
$ export GOPATH=${HOME}/go
$ export PATH=$PATH:${HOME}/bin/go/bin:${GOPATH}/bin
2015-01-23 17:25:24 -08:00
```
2015-05-27 17:43:39 -07:00
## OS X (Yosemite) 10.10
2015-01-23 17:25:24 -08:00
### Build Dependencies
2015-05-27 17:43:39 -07:00
This installation document assumes OS X Yosemite 10.10+ on x86-64 platform.
2015-01-23 17:25:24 -08:00
##### Install brew
```sh
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
2015-04-10 21:18:35 -07:00
##### Install Git, Python
2015-01-23 17:25:24 -08:00
```sh
2015-02-21 21:38:04 -08:00
$ brew install git python
2015-01-23 17:25:24 -08:00
```
##### Install YASM
Minio depends on Intel ISAL library for erasure coding, ISAL uses Intel AVX2 processor instructions, to compile these files one needs to install ``yasm`` which supports AVX2 instructions. AVX2 support only ended in ``yasm`` from version ``1.2.0``, any version below ``1.2.0` ` will throw a build error.
```sh
$ brew install yasm
```
##### Install Go 1.4+
2015-05-27 17:43:39 -07:00
Install golang binaries using `brew`
2015-01-23 17:25:24 -08:00
2015-05-27 17:43:39 -07:00
```sh
2015-01-23 17:25:24 -08:00
$ brew install go
2015-05-27 17:43:39 -07:00
$ mkdir -p $HOME/go
```
2015-01-23 17:25:24 -08:00
2015-05-27 17:43:39 -07:00
##### Setup GOROOT and GOPATH
2015-01-23 17:25:24 -08:00
2015-05-27 17:43:39 -07:00
Add the following exports to your ``~/.bashrc` `. Environment variable GOROOT specifies the location of your golang binaries
and GOPATH specifies the location of your project workspace.
2015-01-23 17:25:24 -08:00
2015-05-27 17:43:39 -07:00
```sh
$ export GOPATH=${HOME}/go
$ export GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6)
$ export GOROOT=$(brew --prefix)/Cellar/go/${GOVERSION}/libexec
$ export PATH=$PATH:${GOPATH}/bin
2014-11-30 13:55:10 -08:00
```