This is an old revision of the document!
get source from MariaDB
extract to /usr/local/src/mariadb
Modular configure (usually you need to load plugins with my.cnf) i am using this one.
./configure --with-extra-charsets=all --localstatedir=/var/db/mysql
OR
Build With Plugin
./configure --with-extra-charsets=all --with-plugin-maria --with-plugin-xtradb --localstatedir=/var/db/mysql
OR
Static Build as suggested by MariaDB wiki.
./configure --prefix=/usr/local/mysql --enable-assembler \ --with-extra-charsets=all --enable-thread-safe-client --with-big-tables \ --with-plugin-maria --with-maria-tmp-tables --with-plugin-xtradb \ --with-mysqld-ldflags=-static --with-client-ldflags=-static --with-readline \ --with-ssl --with-plugins=max-no-ndb --with-embedded-server --with-libevent \ --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static \ --with-zlib-dir=bundled --enable-local-infile
Now run “make -j4” and “make install” – will install it on system.