Skip to content

Instantly share code, notes, and snippets.

@jrossi
Forked from einthusan/go1.4arc65-ubuntu.sh
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrossi/4f0ad3f5dab0b833a658 to your computer and use it in GitHub Desktop.
Save jrossi/4f0ad3f5dab0b833a658 to your computer and use it in GitHub Desktop.
# Install Golang 1.4 and Arc65 + dependencies on fresh Amazon AWS EC2 Ubuntu 14.04 LTS
echo "install basic requirements"
apt-get update && upgrade
apt-get install build-essential mercurial git libssl-dev pkg-config tree
echo "download Go and install it, as well as create GOPATH directory"
cd ~
wget http://golang.org/dl/go1.4.linux-amd64.tar.gz && tar -xf go1.4.linux-amd64.tar.gz && rm go1.4.linux-amd64.tar.gz
mv go /usr/local && mkdir -p /usr/local/gopath
echo "set enviornment variables required for Go"
export GOROOT=/usr/local/go
export GOPATH=/usr/local/gopath
cat <<EOF >> ~/.bashrc
export GOROOT=/usr/local/go
export GOPATH=/usr/local/gopath
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
export GORACE=log_path=$GOPATH/racereport
export w=$GOPATH/src/github.com
EOF
. ~/.bashrc
# install Go tools
echo "installing go tool ... golint"
go get github.com/golang/lint/golint
echo "installing go tool ... errcheck"
go get github.com/kisielk/errcheck
echo "installing go tool ... benchcmp"
go get golang.org/x/tools/cmd/benchcmp
echo "installing go tool ... impl"
go get github.com/josharian/impl
echo "installing go tool ... goimports"
go get golang.org/x/tools/cmd/goimports
echo "installing go tool ... goreturns"
go get sourcegraph.com/sqs/goreturns
echo "installing go tool ... godef"
go get code.google.com/p/rog-go/exp/cmd/godef
echo "installing go tool ... gocode"
go get github.com/nsf/gocode
echo "installing go tool ... oracle"
go get golang.org/x/tools/cmd/oracle
echo "installing go tool ... gorename"
go get golang.org/x/tools/cmd/gorename
echo "installing go tool ... godepgraph"
go get github.com/kisielk/godepgraph
echo "install arc64 external dependencies"
apt-get install zlib1g-dev nodejs npm
npm install less -g && npm install less-plugin-clean-css
npm install uglify-js -g
npm install html-minifier -g
npm install autoprefixer -g
npm install -g bower
ln -s /usr/bin/nodejs /usr/bin/node
echo "install wrk"
cd ~
git clone https://github.com/wg/wrk.git
cd wrk
make
cp wrk /usr/local/bin
cd ~
rm -rf wrk
echo "install done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment