diff --git a/DOC/README.error.mariadb b/DOC/README.error.mariadb new file mode 100644 index 0000000..2bc570b --- /dev/null +++ b/DOC/README.error.mariadb @@ -0,0 +1,16 @@ + +# Configuration error (cmake) on debian 10 (buster): +# +# -- Performing Test JEMALLOC_OK - Failed +# CMake Error at storage/tokudb/CMakeLists.txt:63 (MESSAGE): +# static jemalloc_pic.a can only be used up to jemalloc 4 +# +# +# To fix this error add '-DWITH_JEMALLOC=OFF' to cmake options: +# +# cmake .. +# -DBUILD_CONFIG=mysql_release +# -DCMAKE_INSTALL_PREFIX=$MYSQL_INSTALL_DIR +# <...> +# -DWITH_JEMALLOC=OFF + diff --git a/install_mysql.sh b/install_mysql.sh index 9982f40..80fd793 100755 --- a/install_mysql.sh +++ b/install_mysql.sh @@ -2114,12 +2114,20 @@ if [[ "$MYSQL_DISTRIBUTION" = "MariaDB" ]]; then -DMYSQL_DATADIR=$MYSQL_DATA_DIR -DENABLED_LOCAL_INFILE=ON -DGRN_LOG_PATH=$mariadb_groonga_log - -DCONC_WITH_MYSQLCOMPAT=ON -" + -DCONC_WITH_MYSQLCOMPAT=ON" + if $INSTALL_SYSTEMD_SERVICE ; then - cmake_options="$cmake_options -DWITH_SYSTEMD=yes" + cmake_options="$cmake_options + -DWITH_SYSTEMD=yes" fi + # Fix error: static jemalloc_pic.a can only be used up to jemalloc 4 + # + if [[ "$os_dist" = "debian" ]] && [[ $os_version -gt 9 ]] ; then + cmake_options="$cmake_options + -DWITH_JEMALLOC=OFF" + fi + else cmake_options=" @@ -4984,8 +4992,15 @@ EOF echo "" >> ${logdir}/main.log echo "## - Disable 'Alias' directive(s) at service file.." >> ${logdir}/main.log echo "## -" >> ${logdir}/main.log - echo "perl -i -n -p -e \"s/^(\s*Alias\s*=.*)/#\1\" /etc/systemd/system/$MYSQL_SERVICE_FILE" >> ${logdir}/main.log - perl -i -n -p -e "s/^(\s*Alias\s*=.*)/#\1" /etc/systemd/system/$MYSQL_SERVICE_FILE >> ${logdir}/main.log 2>&1 + echo "perl -i -n -p -e \"s/^(\s*Alias\s*=.*)/#\1/\" /etc/systemd/system/$MYSQL_SERVICE_FILE" >> ${logdir}/main.log + perl -i -n -p -e "s/^(\s*Alias\s*=.*)/#\1/" /etc/systemd/system/$MYSQL_SERVICE_FILE >> ${logdir}/main.log 2>&1 + + if [ "$?" = "0" ]; then + echo_ok + else + echo_failed + error "Disbling 'Alias' directive(s) at service file failed!" + fi fi fi # if $PARALLEL_INSTALLATION ; then