Instructions for building MariaDB can be found at:
https://mariadb.com/kb/en/compiling-mariadb-from-source