Instalace MariaDB 10.4.11

Download: https://downloads.mariadb.org/mariadb/10.4.11/

Installation steps

# you might not need to install build tools
apt-get install cmake build-essential
# all dependencies
apt-get install bison cmake libncurses5-dev automake autoconf libtool zlib1g-dev openssl unzip libxml2-dev libboost-dev libjudy-dev gnutls-bin git curl libjemalloc-dev

tar -xzf maria-xy.tag.gz

mv maria-10.4.11 /opt
cd /opt/mariadb-10.4.11/; cmake  -DBUILD_CONFIG=mysql_release
# some errors might occuer if you miss required packages
# error: aio is required - install appropriate package...
apt-get install libaio-dev
cmake  -DBUILD_CONFIG=mysql_release
# -- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) 
# On Debian/Ubuntu, package name is libncurses5-dev
cmake  -DBUILD_CONFIG=mysql_release
# -- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) 
# -- Could NOT find Git (missing: GIT_EXECUTABLE) 
# Dependencies: sudo apt-get install bison cmake libncurses5-dev automake autoconf libtool zlib1g-dev openssl unzip libxml2-dev libboost-dev libjudy-dev 

# after installing needed packages delete cmake cache and run cmake 
cd /opt/mariadb-10.4.11/; rm CMakeCache.txt; cmake  -DBUILD_CONFIG=mysql_release

Delete CMake cache to prevent repeated errors

rm CMakeCache.txt
cmake  -DBUILD_CONFIG=mysql_release
# in 1 row
cd /opt/mariadb-10.4.11/; rm CMakeCache.txt; cmake  -DBUILD_CONFIG=mysql_release

Sources

Installation instructions – build from source: https://mariadb.com/kb/en/compiling-mariadb-from-source/

https://mariadb.com/kb/en/Build_Environment_Setup_for_Linux/