CX Installation on Linux
Info
You have got two options to install CX on Windows.
- Binary Releases - Fast and safe Installation
- Compiling from Source - better to customize your cx-options, also necessary for CX-Chains
- 
Download the latest version of cx from https://github.com/skycoin/cx/releases TODO: terminal command
- 
Unzip into the destination folder you want to have your CX-files. TODO: terminal command
- 
Setup the Environmental Variable $PATH so it knows your destination folder. TODO: terminal command
Requirements
To compile cx from source you need golang installed!
Install Go
Source: https://raw.githubusercontent.com/skycoin/skycoin/develop/INSTALLATION.md
We need to install linux dependencies on the correct distribution.
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y curl git mercurial make binutils gcc bzr bison libgmp3-dev screen gcc build-essential
sudo yum update -y && sudo yum upgrade -y
sudo yum install -y git curl make gcc mercurial binutils bzr bison screen
if [[ "$(cat /etc/redhat-release | grep -o CentOS)" == "CentOS" ]]; then sudo yum install -y build-essential libgmp3-dev; else sudo yum groupinstall -y "Development Tools" "Development Libraries" && sudo yum install -y gmp; fi;
First update the system and ensure the dependancies are met
sudo pacman -Syy && sudo pacman -Syu
sudo pacman -S base-devel
Install the latest version of go on Archlinux with:
sudo pacman -S go
Let's go to home directory and declare go's version that you want to download.
cd ~
export GOV=1.11.1 # golang version
After that, let's download and uncompress golang source.
curl -sS https://storage.googleapis.com/golang/go$GOV.linux-amd64.tar.gz > go$GOV.linux-amd64.tar.gz
tar xvf go$GOV.linux-amd64.tar.gz
rm go$GOV.linux-amd64.tar.gz
lastly, let's install go.
sudo mv go /usr/local/go
sudo ln -s /usr/local/go/bin/go /usr/local/bin/go
sudo ln -s /usr/local/go/bin/godoc /usr/local/bin/godoc
sudo ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt
Note
Find any golang source version at Go Website
The $GOPATH environment variable specifies the location of your workspace. It defaults to a directory named go inside your home directory, so $HOME/go on Unix.
Create your workspace directory with it's respective inner folders:
mkdir -p $HOME/go
mkdir -p $HOME/go/bin
mkdir -p $HOME/go/src
mkdir -p $HOME/go/pkg
Setup $GOPATH variable, add it to ~/.bashrc. After editing, run source ~/.bashrc or open a new tab.
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN
Create and run the hello.go application described here to check if your Go installation is working.
- 
Make sure you have got go1.10+ installed. If not follow the guide above. 
- 
Download CX's respository with: go get github.com/skycoin/cx/cx/...
- 
Navigate to CX's repository and run: make install
- 
Test your installation by running: make testNote If you intend to develop games with CX test by running: make test-full
- 
To update your CX-Installation just run make installagain.
Hello, World!
TODO
Next Step
The next step should be to search for a development environment that fits you to code as easy as possible. Have a look into Programming Tools to find and setup your favorite Code Editor.