Project

General

Profile

Support #283

Building MariaDB Debian Package From Source

Added by Daniel Curtis almost 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Database Server
Target version:
-
Start date:
12/30/2013
Due date:
% Done:

100%

Estimated time:
3.00 h
Spent time:

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
    
#1

Updated by Daniel Curtis almost 8 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

#2

Updated by Daniel Curtis almost 8 years ago

  • Status changed from Resolved to Closed
#3

Updated by Daniel Curtis almost 7 years ago

  • Project changed from 65 to GNU/Linux Administration
  • Description updated (diff)
  • Category set to Database Server

Also available in: Atom PDF