mirror of
https://github.com/minio/minio.git
synced 2025-02-25 20:39:14 -05:00
Update BUILDDEPS.md
This commit is contained in:
parent
66967b8ec0
commit
2cbd4e00df
77
BUILDDEPS.md
77
BUILDDEPS.md
@ -1,6 +1,6 @@
|
|||||||
## Ubuntu (Kylin) 14.04
|
## Ubuntu (Kylin) 14.04
|
||||||
### Build Dependencies
|
### Build Dependencies
|
||||||
This installation document assumes Ubuntu 14.04 or later on x86-64 platform.
|
This installation document assumes Ubuntu 14.04+ on x86-64 platform.
|
||||||
|
|
||||||
##### Install Git, GCC
|
##### Install Git, GCC
|
||||||
```sh
|
```sh
|
||||||
@ -16,36 +16,29 @@ $ sudo apt-get install yasm
|
|||||||
```
|
```
|
||||||
|
|
||||||
##### Install Go 1.4+
|
##### Install Go 1.4+
|
||||||
Download Go 1.4+ 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:
|
Download Go 1.4+ from [https://golang.org/dl/](https://golang.org/dl/).
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
.... Extract and install golang ....
|
|
||||||
|
|
||||||
$ wget https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz
|
$ wget https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz
|
||||||
$ mkdir -p ${HOME}/local
|
$ mkdir -p ${HOME}/bin/
|
||||||
$ mkdir -p $HOME/mygo
|
$ mkdir -p ${HOME}/go/
|
||||||
$ tar -C ${HOME}/local -xzf go1.4.linux-amd64.tar.gz
|
$ tar -C ${HOME}/bin/ -xzf go1.4.linux-amd64.tar.gz
|
||||||
|
```
|
||||||
|
##### Setup GOROOT and GOPATH
|
||||||
|
|
||||||
.... Export necessary environment variables ....
|
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.
|
||||||
|
|
||||||
$ export PATH=$PATH:${HOME}/local/go/bin
|
```sh
|
||||||
$ export GOROOT=${HOME}/local/go
|
$ export GOROOT=${HOME}/bin/go
|
||||||
$ export GOPATH=$HOME/mygo
|
$ export GOPATH=${HOME}/go
|
||||||
$ export PATH=$PATH:$GOPATH/bin
|
$ export PATH=$PATH:${HOME}/bin/go/bin:${GOPATH}/bin
|
||||||
|
|
||||||
.... Add paths to your bashrc ....
|
|
||||||
|
|
||||||
$ cat << EOF > ${HOME}/.bashrc
|
|
||||||
export PATH=$PATH:${HOME}/local/go/bin
|
|
||||||
export GOROOT=${HOME}/local/go
|
|
||||||
export GOPATH=$HOME/mygo
|
|
||||||
export PATH=$PATH:$GOPATH/bin
|
|
||||||
EOF
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Mac OSX (Yosemite) 10.10
|
## OS X (Yosemite) 10.10
|
||||||
### Build Dependencies
|
### Build Dependencies
|
||||||
This installation document assumes Mac OSX Yosemite 10.10 or later on x86-64 platform.
|
This installation document assumes OS X Yosemite 10.10+ on x86-64 platform.
|
||||||
|
|
||||||
##### Install brew
|
##### Install brew
|
||||||
```sh
|
```sh
|
||||||
@ -66,28 +59,22 @@ $ brew install yasm
|
|||||||
```
|
```
|
||||||
|
|
||||||
##### Install Go 1.4+
|
##### Install Go 1.4+
|
||||||
On MacOSX ``brew.sh`` is the best way to install golang
|
|
||||||
|
|
||||||
For example:
|
Install golang binaries using `brew`
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
.... Install golang using `brew` ....
|
|
||||||
|
|
||||||
$ brew install go
|
$ brew install go
|
||||||
$ mkdir -p $HOME/mygo
|
$ mkdir -p $HOME/go
|
||||||
|
```
|
||||||
.... Export necessary environment variables ....
|
|
||||||
|
##### Setup GOROOT and GOPATH
|
||||||
$ export GOPATH=$HOME/mygo
|
|
||||||
$ export PATH=$PATH:$GOPATH/bin
|
Add the following exports to your ``~/.bashrc``. Environment variable GOROOT specifies the location of your golang binaries
|
||||||
$ GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6)
|
and GOPATH specifies the location of your project workspace.
|
||||||
$ export GOROOT=$(brew --prefix)/Cellar/go/$GOVERSION/libexec
|
|
||||||
|
```sh
|
||||||
.... Add paths to your bashrc ....
|
$ export GOPATH=${HOME}/go
|
||||||
|
$ export GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6)
|
||||||
$ cat << EOF > ~/.bashrc
|
$ export GOROOT=$(brew --prefix)/Cellar/go/${GOVERSION}/libexec
|
||||||
GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6)
|
$ export PATH=$PATH:${GOPATH}/bin
|
||||||
export GOPATH=$HOME/mygo
|
|
||||||
export PATH=$PATH:$GOPATH/bin
|
|
||||||
export GOROOT=$(brew --prefix)/Cellar/go/$GOVERSION/libexec
|
|
||||||
EOF
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user