Building MariaDB on Ubuntu
You are viewing an old version of this article. View
the current version here.
Ubuntu Build Requirements
- Packaging scripts
- MariaDB sources
- The following Ubuntu packages:
- build-essential dpkg-dev devscripts hardening-wrapper autoconf automake1.9 autotools-dev binutils bison chrpath debhelper defoma doxygen dpatch dvipdfmx fakeroot fontconfig-config g++ g++-4.3 gawk gcc gcc-4.3 gettext ghostscript ghostscript-x gs gsfonts html2text intltool-debian libc6-dev libcroco3 libcups2 libcupsimage2 libfontconfig1 libfontenc1 libfreetype6 libgomp1 libgs8 libice6 libjpeg62 libkpathsea4 libltdl7 libltdl7-dev libmail-sendmail-perl libncurses5-dev libpaper-utils libpaper1 libpng12-0 libpoppler4 libreadline5-dev libsm6 libstdc++6-4.3-dev libsys-hostname-long-perl libtiff4 libtool libwrap0-dev libxaw7 libxfont1 libxmu6 libxpm4 libxt6 linux-libc-dev lmodern m4 make patchutils po-debconf psfontmgr tex-common texlive-base texlive-base-bin texlive-base-bin-doc texlive-common texlive-doc-base texlive-latex-base texlive-latex-base-doc ttf-dejavu ttf-dejavu-core ttf-dejavu-extra xfonts-encodings xfonts-utils zlib1g-dev
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.
MariaDB Server
Alternate mechanism for getting source:
$ apt-get source mariadb-server
Use the following from the MariaDB source tree to install the build dependencies:
$ mk-build-deps debian/control $ sudo apt install ./mariadb-*build-deps_*deb
Use the debian/autobake-deb.sh script from the MariaDB source tree:
$ debian/autobake-deb.sh
MariaDB Galera (for 5.5 and 10.0)
As apt-source mariadb-galera-server doesn't work use https://downloads.mariadb.org/mariadb-galera/ to retrieve a source tar.gz file.
Use the debian/autobake-deb.sh script from the MariaDB source tree:
$ debian/autobake-deb.sh
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.