mtsatellite/COMPILE.md

43 lines
1.4 KiB
Markdown
Raw Normal View History

2014-10-03 19:39:27 +02:00
#HOWTO compile MTSatellite
2015-12-26 18:06:15 +01:00
To build MTSatellite a [Go](http://golang.org) compiler 1.4 or better is needed.
2014-10-03 19:39:27 +02:00
Currently this is only tested on Debian Wheezy, Debian Jessie,
2017-02-24 14:31:33 +01:00
Ubuntu Ubuntu Trusty Thar (14.04) and newer. Other flavors
of GNU/Linux should work, too. Mac OS X may work. Problems with MS Windows
2014-10-03 19:39:27 +02:00
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/
2017-09-05 18:22:10 +02:00
$ wget https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz
2014-10-03 19:39:27 +02:00
2017-09-05 18:22:10 +02:00
$ echo "d70eadefce8e160638a9a6db97f7192d8463069ab33138893ad3bf31b0650a79 go1.9.linux-amd64.tar.gz" | sha256sum -c -
2014-10-03 19:39:27 +02:00
2017-09-05 18:22:10 +02:00
$ tar xf go1.9.linux-amd64.tar.gz
2014-10-03 19:39:27 +02:00
$ 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