Building MariaDB from source using musl on Alpine
Instructions on compiling MariaDB on musl-based Operating Systems (Alpine)
Contents
The instructions on this page will help you compile MariaDB from source. Links to more complete instructions for specific platforms can be found on the source page.
First, get a copy of the MariaDB source.
Next, prepare your system to be able to compile the source.
If you don't want to run MariaDB as yourself, then you should create a
mysql
user. The example below uses this user.
Using cmake
MariaDB 5.5 and above is compiled using cmake. You can configure your build simply by running cmake without any special options, like
cmake . -DWITHOUT_TOKUDB=1
To build and install MariaDB after running cmake use
make sudo make install
Of course, building with MariaDB this way will disable tokuDB, till tokuDB becomes fully supported on musl.