linux - mariadb10.3編譯安裝時找不到jemalloc
迷茫
迷茫 2017-05-16 13:31:34
0
1
1156

錯誤如下:
[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

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

全部回覆(1)
漂亮男人

好了,應該是這個版本的jemalloc不支援mariadb-10.3,換了一個10.0的就OK了

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板