Page 1 of 1

Migration to redis is not supported

PostPosted: Sun Apr 12, 2015 08:45
by burli
Hi folks,
I try to setup a little local Minetest server, but I'm struggling setting up the redis server.

I'm running Ubuntu Server 14.04 64 Bit and Minetest 0.4.12 from the stable PPA. I created a simple world and then I try to migrate to Redis

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetestserver --migrate redis
Automatically selecting world at [/home/markus/.minetest/worlds/world]
10:38:08: ERROR[main]: Migration to redis is not supported


Any solution why this happens? The Redis server is running

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
redis-server --version
Redis server v=2.8.4 sha=00000000:0 malloc=jemalloc-3.4.1 bits=64 build=a44a05d76f06a5d9


Regards

Re: Migration to redis is not supported

PostPosted: Sun Apr 12, 2015 09:12
by Krock
Are you sure your minetestserver is compiled with redis?
It's an optional library and maybe not included in all binaries.

Re: Migration to redis is not supported

PostPosted: Sun Apr 12, 2015 09:41
by burli
No idea what's compiled into the PPA version.

How can I compile minetestserver? I just found something for Minetest

Re: Migration to redis is not supported

PostPosted: Sun Apr 12, 2015 11:00
by Calinou
You can adapt this script: viewtopic.php?f=42&t=3837

To disable client building, use -DBUILD_CLIENT=0 -DBUILD_SERVER=1 (both have to be specified).

Re: Migration to redis is not supported

PostPosted: Tue Apr 14, 2015 20:38
by sfan5
I'd advise against Calinou's script because it installs a lot of unneeded dependencies if you only need the server.
This should work equally well without requiring all the dependencies:
* Install sqlite3, libhiredis and luajit
* Download the irrlicht sources
* Clone minetest github repository
* Run cmake with -DIRRLICHT_INCLUDE_DIR=<path to irrlicht>/include -DBUILD_CLIENT=0 -DBUILD_SERVER=1 -DENABLE_REDIS=1
* Build minetestserver and install it.