From 498ffb97c409a2cdf9bcb3672deff0b218f611ec Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Fri, 3 Oct 2014 19:39:27 +0200 Subject: [PATCH] Add a text how to compile MTSatellite. --- COMPILE.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 47 insertions(+) create mode 100644 COMPILE.md diff --git a/COMPILE.md b/COMPILE.md new file mode 100644 index 0000000..384077c --- /dev/null +++ b/COMPILE.md @@ -0,0 +1,44 @@ +#HOWTO compile MTSatellite + +To build MTSatellite a [Go](http://golang.org) compiler 1.3 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.3.3.linux-amd64.tar.gz + + $ sha1sum https://storage.googleapis.com/golang/go1.3.3.linux-amd64.tar.gz + 14068fbe349db34b838853a7878621bbd2b24646 go1.3.3.linux-amd64.tar.gz + + $ tar xf go1.3.3.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 + + diff --git a/README.md b/README.md index 7dfce60..93bcd73 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,9 @@ can be share on the web. To get a glimpse what it does watch [Realtime Webmapping for Minetest worlds](http://youtu.be/iYEROGPj7RI) on YouTube. +See [COMPILE](https://bitbucket.org/s_l_teichmann/mtsatellite/src/default/COMPILE.md) how to compile +MTSatellite. Essentially you need Go 1.3 (x >= 3) and a GNU/Linux system. + To use it you have to configure your Minetest server to use the Redis backend data store. Instead of a real Redis server you have to run **mtredisalize**. This server stores the data in an optimized form and collects changes made to the world over a configurable amount