Dependencies
GCC
CMake
libjpeg
libpng
SDL
Freetype
SQLite3
Zlib
Zstd
LuaJIT
GMP
JsonCPP
Curl
gettext
Install Dependencies For Debian/Ubuntu users:
sudo apt install g++ make libc6-dev cmake libpng-dev libjpeg-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
For Fedora users:
sudo dnf install make automake gcc gcc-c++ kernel-devel cmake libcurl-devel openal-soft-devel libpng-devel libjpeg-devel libvorbis-devel libogg-devel freetype-devel mesa-libGL-devel zlib-devel jsoncpp-devel gmp-devel sqlite-devel luajit-devel leveldb-devel ncurses-devel spatialindex-devel libzstd-devel gettext SDL2-devel
For openSUSE users:
sudo zypper install gcc gcc-c++ cmake libjpeg8-devel libpng16-devel openal-soft-devel libcurl-devel sqlite3-devel luajit-devel libzstd-devel Mesa-libGL-devel libvorbis-devel freetype2-devel SDL2-devel
For Arch users:
sudo pacman -S --needed base-devel libcurl-gnutls cmake libpng sqlite libogg libvorbis openal freetype2 jsoncpp gmp luajit leveldb ncurses zstd gettext sdl2
For Alpine users:
sudo apk add build-base cmake libpng-dev jpeg-dev mesa-dev sqlite-dev libogg-dev libvorbis-dev openal-soft-dev curl-dev freetype-dev zlib-dev gmp-dev jsoncpp-dev luajit-dev zstd-dev gettext sdl2-dev
For Void users:
sudo xbps-install cmake libpng-devel jpeg-devel mesa sqlite-devel libogg-devel libvorbis-devel libopenal-devel libcurl-devel freetype-devel zlib-devel gmp-devel jsoncpp-devel LuaJIT-devel libzstd-devel gettext SDL2-devel
Server
wget https://github.com/minetest/minetest/archive/refs/tags/5.9.0.tar.gz tar -xf 5.9.0.tar.gz mv minetest-5.9.0 minetest cd minetest cmake . -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE -DRUN_IN_PLACE=TRUE -DCMAKE_BUILD_TYPE=Release make -j$(nproc)
Client
wget https://github.com/minetest/minetest/archive/refs/tags/5.9.0.tar.gz tar -xf 5.9.0.tar.gz mv minetest-5.9.0 minetest cd minetest cmake . -DRUN_IN_PLACE=TRUE -DCMAKE_BUILD_TYPE=Release make -j$(nproc)
/articles/software-guides/programs/