User Tools

Site Tools


building_mariadb_on_freebsd

This is an old revision of the document!


Build / Compile MariaDB on FreeBSD

Getting Source

get source from MariaDB
extract to /usr/local/src/mariadb

Configure

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.

Level 3 Headline

building_mariadb_on_freebsd.1284396900.txt.gz · Last modified: 2020/08/10 02:28 (external edit)