Add '-DWITH_JEMALLOC=OFF' to cmake options if debian 10 (buster) and MariaDB.
This commit is contained in:
parent
aaf169727d
commit
e09a181e77
16
DOC/README.error.mariadb
Normal file
16
DOC/README.error.mariadb
Normal file
@ -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
|
||||||
|
|
@ -2114,12 +2114,20 @@ if [[ "$MYSQL_DISTRIBUTION" = "MariaDB" ]]; then
|
|||||||
-DMYSQL_DATADIR=$MYSQL_DATA_DIR
|
-DMYSQL_DATADIR=$MYSQL_DATA_DIR
|
||||||
-DENABLED_LOCAL_INFILE=ON
|
-DENABLED_LOCAL_INFILE=ON
|
||||||
-DGRN_LOG_PATH=$mariadb_groonga_log
|
-DGRN_LOG_PATH=$mariadb_groonga_log
|
||||||
-DCONC_WITH_MYSQLCOMPAT=ON
|
-DCONC_WITH_MYSQLCOMPAT=ON"
|
||||||
"
|
|
||||||
if $INSTALL_SYSTEMD_SERVICE ; then
|
if $INSTALL_SYSTEMD_SERVICE ; then
|
||||||
cmake_options="$cmake_options -DWITH_SYSTEMD=yes"
|
cmake_options="$cmake_options
|
||||||
|
-DWITH_SYSTEMD=yes"
|
||||||
fi
|
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
|
else
|
||||||
|
|
||||||
cmake_options="
|
cmake_options="
|
||||||
@ -4984,8 +4992,15 @@ EOF
|
|||||||
echo "" >> ${logdir}/main.log
|
echo "" >> ${logdir}/main.log
|
||||||
echo "## - Disable 'Alias' directive(s) at service file.." >> ${logdir}/main.log
|
echo "## - Disable 'Alias' directive(s) at service file.." >> ${logdir}/main.log
|
||||||
echo "## -" >> ${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
|
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
|
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
|
||||||
|
|
||||||
fi # if $PARALLEL_INSTALLATION ; then
|
fi # if $PARALLEL_INSTALLATION ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user