Comments - Generic Build Instructions

12 years, 2 months ago Adam Dutko

Here is a quick script I've used to automate the installation of MariaDB 5.3.x on various Debian GNU/Linux systems (run as root):

#!/bin/bash
apt-get update
apt-get install build-essentials
cd /opt/
mkdir mariadb
cd mariadb
wget http://downloads.askmonty.org/f/mariadb-5.3.3-rc/kvm-tarbake-jaunty-x86/mariadb-5.3.3-rc.tar.gz/from/http:/ftp.osuosl.org/pub/mariadb
mv mariadb mariadb-5.3.3-rc.tar.gz
tar -xzf mariadb-5.3.3-rc.tar.gz  
ln -s mariadb-5.3.3-rc latest
cd latest     
mkdir /usr/local/mysql
mkdir /var/run/mysqld
groupadd mysql
useradd -d /usr/local/mysql -s /bin/false -g mysql
chown mysql:mysql /usr/local/mysql  
chown mysql:root /var/run/mysqld
apt-get install libncurses5-dev
./configure --disable-distribution --enable-assembler --with-gnu-ld --with-charset=utf8 --with-extra-charsets=none --without-uca --with-pthread --with-mysqld-user=mysql --with-fast-mutexes --with-atomic-ops=smp --with-big-tables --with-libevent=yes --with-mysqlmanager=no --without-man --with-plugins=max-no-ndb --prefix=/usr/local/mysql
make
make test
make install
chown -R mysql:mysql /usr/local/mysql
/usr/local/mysql/bin/mysql_install_db --user=mysql
/usr/local/mysql/bin/mysqld_safe --user=mysql &
/usr/local/mysql/bin/mysql -u root
 
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.