linux - mariadb10.3编译安装时找不到jemalloc
迷茫
迷茫 2017-05-16 13:31:34
0
1
1148

错误如下:
[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_JEMALLOC)

-- 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/CMakeTmp”
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_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_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/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.8/Modules/CheckFunctionExists.c
Linking C executable cmTC_e1c34
/usr/local/bin/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 -rdynamic CMakeFiles/cmTC_e1c34.dir/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] 错误 1
gmake[1]: 离开目录“/usr/local/src/mariadb-10.3.0/CMakeFiles/CMakeTmp”
gmake: * [cmTC_e1c34/fast] 错误 2

迷茫
迷茫

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

全部回复(1)
漂亮男人

好了,应该是这个版本的jemalloc不支持mariadb-10.3,换了一个10.0的就OK了

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板