As this post written the latest Minetest stable version is 5.8, to install this version we must build from source because default repository still in version 5.6.
-
First we need to install needed dependencies and download Minetest latest stable branch and specific version of Irrlicht:
sudo apt install g++ make libc6-dev cmake libpng-dev libjpeg-dev libxi-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev libzstd-dev libluajit-5.1-dev gettext libsdl2-dev
-
Extract Minetest source code to desired location (example:
minetest
folder) -
Extract the Irrlicht source code to
minetest/lib/irrlichtmt
-
Start build / compile by run this command inside
minetest
folder:cmake . -DRUN_IN_PLACE=FALSE make -j$(nproc)
-
If there is no problem you should successfully build the Minetest executable binary in
minetest/bin/minetest
, then make accessible system-wide we can runsudo make install
, done.