Support #283
Building MariaDB Debian Package From Source
Description
I am currently looking at alternatives to MySQL as it is proving to be inadequate for scaling, high availability, and replication. The most viable option would be MariaDB or Percona, I have chosen MariaDB.
- Install dependencies:
sudo su apt-get install build-essential libaio-dev bzr libtool debhelper libncurses5-dev libwrap0-dev zlib1g-dev libreadline-dev po-debconf chrpath doxygen texlive-latex-base ghostscript gawk bison hardening-wrapper cmake checkinstall
- Download MariaDB via bzr:
cd /usr/local/src mkdir mariadb-server-5.5 bzr branch lp:maria/5.5 trunk
- Configure, compile, and build MariaDB .deb package:
cd 5.5 ./configure make checkinstall -D make install
Updated by Daniel Curtis almost 11 years ago
I found that going through a Debian repo works as well.
- First add the packaging keys and create
/etc/apt/sources.list.d/mariadb.source.list
:sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db vi /etc/apt/sources.list.d/mariadb.source.list
And add:
deb-src http://ftp.osuosl.org/pub/mariadb/repo/5.5/debian wheezy main
Then refresh the apt package listing and build dependencies for MariaDB:
sudo apt-get update sudo apt-get build-dep mariadb-server
Switch to source directory and begin package compilation:
cd /usr/src apt-get -b source mariadb-server
Updated by Daniel Curtis almost 10 years ago
- Project changed from 65 to GNU/Linux Administration
- Description updated (diff)
- Category set to Database Server