Building MariaDB on Ubuntu
You are viewing an old version of this article. View
the current version here.
Contents
Ubuntu Build Requirements
- Install the following Ubuntu packages for starting the build process:
- devscripts
- equivs
Using the source from Ubuntu
Enable the 'deb-src' line in the /etc/apt/source* from where MariaDB can be found.
$ sudo apt update $ apt source mariadb-server $ sudo apt build-deb mariadb-server
Run the debian/autobake-deb.sh script to create packages:
$ debian/autobake-deb.sh
Note: This will not work for MariaDB Galera (for 5.5 and 10.0), use the Building from MariaDB method below
Building from MariaDB
Get the source from https://downloads.mariadb.org/ or from the repository using git as below:
git clone --branch 10.3 https://github.com/MariaDB/server.git
Install the build dependencies:
$ debian/autobake-deb.sh (ignore errors) $ mk-build-deps debian/control $ sudo apt install ./mariadb-*build-deps_*deb
Run the debian/autobake-deb.sh again script to create packages:
$ debian/autobake-deb.sh
After Building
After building the packages, it is a good idea to put them in a repository. See the Creating a Debian Repository page for instructions.
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.