[go: up one dir, main page]

Skip to content

Installing Dependencies

Vladimir Venediktov edited this page Apr 4, 2018 · 3 revisions

Linux


Go 1.9 ( Linux)

$ sudo add-apt-repository ppa:gophers/archive
$ sudo apt-get update
$ sudo apt-get install golang-1.9-go
$ sudo ln -s -f /usr/lib/go-1.9/bin/go /usr/bin/go
$ sudo ln -s -f /usr/lib/go-1.9/bin/gofmt /usr/bin/gofmt

npm/node.js installation(Linux)

sudo apt-get remove nodejs ^node-* nodejs-*
sudo apt-get autoremove
sudo apt-get clean
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install nodejs

Then :

curl https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | sh

After this, open a new terminal and check the npm version:

npm --version

CMAKE ( Linux )

purge your old cmake by following command

sudo apt-get purge cmake

Download latest cmake

mkdir cmake
wget --no-check-certificate --quiet -O - https://cmake.org/files/v3.8/cmake-3.8.0.tar.gz | tar --strip-components=1 -xz -C cmake
cd cmake
./bootstrap --prefix=/usr
sudo make -j4 install

For Mac OS

Install Homebrew if you don't have it already installed

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)

Then run below commands to install latest cmake

brew doctor
brew install cmake

npm/node.js installation(OSX HomeBrew)

brew update
brew install node

Go 1.9 ( OSX )

brew update
brew install go