Skip to content

Instantly share code, notes, and snippets.

@andybe
Last active May 12, 2021 13:06
Show Gist options
  • Save andybe/78ee85b2c78711b86201d3be68031b4d to your computer and use it in GitHub Desktop.
Save andybe/78ee85b2c78711b86201d3be68031b4d to your computer and use it in GitHub Desktop.
Mariadb OSX
#!/bin/bash
VERSION=10.5.10
PREFIX=/Library/Modules/Databases/Mariadb/$VERSION \
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX \
-DINSTALL_DOCDIR=share/doc/mariadb-$VERSION \
-DINSTALL_DOCREADMEDIR=share/doc/mariadb-$VERSION \
-DINSTALL_MANDIR=share/man -DINSTALL_MYSQLSHAREDIR=share/mysql \
-DINSTALL_MYSQLTESTDIR=share/mysql/test -DINSTALL_PLUGINDIR=lib/mysql/plugin \
-DINSTALL_SBINDIR=sbin -DINSTALL_SCRIPTDIR=bin -DINSTALL_SQLBENCHDIR=share/mysql/bench \
-DINSTALL_SUPPORTFILESDIR=share/mysql -DMYSQL_DATADIR=/var/lib/mysql \
-DMYSQL_UNIX_ADDR=/var/run/mysqld.sock -DWITH_EXTRA_CHARSETS=complex \
-DWITH_EMBEDDED_SERVER=ON -DSKIP_TESTS=ON -DTOKUDB_OK=0 \
../mariadb-$VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment