錯誤如下:
[root@localhost mariadb-10.3.0]# cmake . -DBUILD_CONFIG=mysql_release
-- Running cmake version 3.8.0
-- MariaDB 10.3.0
- - Packaging as: mariadb-10.3.0-Linux-x86_64
-- Checking for one of the modules 'libsystemd;libsystemd-daemon'
== Configuring MariaDB Connector/C
SYSTEM processor: x86_64
CMake Error at cmake/jemalloc.cmake:38 (MESSAGE):
jemalloc is not found
Call Stack (most recent call first):
storage/tokudb/CMakeLists.txt:33 (CHECK_JEMALLOCOC)
-- Configuring incomplete, errors occurred!
See also "/usr/local/src/mariadb-10.3.0/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/ mariadb-10.3.0/CMakeFiles/CMakeError.log".
[root@localhost mariadb-10.3.0]
#我去翻了CMakeError,沒看懂,以下只是一部分,也不知道有沒有用;
Run Build Command:"/usr/bin/gmake" "cmTC_e1c34/fast"
/usr /bin/gmake -f CMakeFiles/cmTC_e1c34.dir/build.make CMakeFiles/cmTC_e1c34.dir/build
gmake[1]: 進入目錄「/usr/local/src/mariadb-10.3.0/CMakeFiles/CM
Building C object CMakeFiles/cmTC_e1c34.dir/CheckFunctionExists.c.o
/usr/bin/cc -DPACKAGE=test -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1 -D_FLARGEDST_BI _MACROS -D__STDC_LIMIT_MACROS -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -DCHECK_FUNCTION_EXISTS=malloc_stats_print -o CMakeFiles/cmTC_e1c34.dir/Funcc. /share/cmake-3.8/Modules/CheckFunctionExists.c
Linking C executable cmTC_e1c34
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e1c34.dir/cmake -E cmake_link_script CMakeFiles/cmTC_e1c34.dir/link.txt --verbose=1. usr/bin/cc -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DWITH_INNODB_DISALLOW_WRITES -DCHECK_FUNCTION_EXISTS=malloc_stats_print -rdmic CMpakeFiles/ CheckFunctionExists.c.o -o cmTC_e1c34 -ljemalloc_pic -lpthread -ldl -lm
/usr/bin/ld: cannot find -ljemalloc_pic
collect2: 錯誤:ld 回傳1
gmake[1]: ##*
[cmTC_e1c34] 錯誤1gmake[1]: 離開目錄「/usr/local/src/mariadb-10.3.0/CMakeFiles/CMakeTmp」gmake:
*
[cmTC_e1c344 /fast] 錯誤2
好了,應該是這個版本的jemalloc不支援mariadb-10.3,換了一個10.0的就OK了