- Install an older version of gcc and g++: sudo apt install gcc-5 g++-5
- Unpack source. I used 5.6.35
- Remove the connection_control plugin because that does not compile when the perf schema is disabled at compile time -> rm -rf $SRC_ROOT/plugin/connection_control
- Run cmake. See below. Note that I disable the perf schema.
My Cmake script:
prefix=$1
CC=gcc-5 CXX=g++-5 \
cmake .. \
-DBUILD_CONFIG=mysql_release \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX:PATH=$prefix \
-DWITH_SSL="bundled" \
-DWITH_ZLIB="bundled" \
-DMYSQL_DATADIR="${prefix}/data" \
-DMYSQL_UNIX_ADDR="${prefix}/var/mysql.sock" \
-DENABLED_LOCAL_INFILE=1 \
-DMYSQL_MAINTAINER_MODE=0 \
-DWITH_PERFSCHEMA_STORAGE_ENGINE=0 > o.cm 2> e.cm
No comments:
Post a Comment