mtsatellite/COMPILE.md
Sascha L. Teichmann 9f73435783 Mentioned Go1.7rc1
2016-07-11 17:13:53 +02:00

1.8 KiB

#HOWTO compile MTSatellite

To build MTSatellite a Go compiler 1.4 or better is needed.

Currently this is only tested on Debian Wheezy, Debian Jessie, Ubuntu Trusty Thar and Ubuntu Utopic Unicorn. Other flavors of GNU/Linux should do, too. Mac OS X may work. Problems with MS Windows are expected.

A quick and dirty way to produce the binaries of mtdbconverter, mtredisalize, mtseeder and mtwebmapper:

# Assuming you have a 64bit GNU/Linux system. For other systems take
# the corresponding version from https://golang.org/dl/
$ wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz

$ echo "e40c36ae71756198478624ed1bb4ce17597b3c19d243f3f0899bb5740d56212a go1.6.2.linux-amd64.tar.gz" | sha256sum -c -

$ tar xf go1.6.2.linux-amd64.tar.gz

$ mkdir -p gopath/{pkg,bin,src}

$ export GOROOT=`pwd`/go

$ export GOPATH=`pwd`/gopath

$ export PATH=$GOROOT/bin:$GOPATH/bin:$PATH

# On Debian Wheezy you have to install the LevelDB dev from Backports.
$ sudo apt-get install libleveldb-dev

$ go get -u bitbucket.org/s_l_teichmann/mtsatellite/cmd/mtdbconverter

$ go get -u bitbucket.org/s_l_teichmann/mtsatellite/cmd/mtredisalize

$ go get -u bitbucket.org/s_l_teichmann/mtsatellite/cmd/mtseeder

$ go get -u bitbucket.org/s_l_teichmann/mtsatellite/cmd/mtwebmapper

$ ls $GOPATH/bin
mtdbconverter  mtredisalize  mtseeder  mtwebmapper

Using Go1.7 improves the performance of MTSatellite up to 15% on AMD64 machines. To use this experimental/unstable compiler toolchain replace the wget command mentioned above with:

$ wget https://storage.googleapis.com/golang/go1.7rc1.linux-amd64.tar.gz

$ echo "afe956b6d323c68fbd851f4e962f26f16dde61d7caa1de1a8408c7de0b6034aa go1.7rc1.linux-amd64.tar.gz" | sha256sum -c -