在Raspbian Wheezy上构建MariaDB时无法找到jemalloc

时间:2017-02-27 10:38:31

标签: cmake raspberry-pi mariadb raspbian

我已经安装了Build Environment Setup for Linux上显示的必需工具列表,包括JEMALLOC,我的Raspberry Pi上安装了Raspbian Wheezy,完全更新并进行了开发设置。我已成功构建了一些列出的工具(Bison,CMake 3.7.2)。我有gcc和g ++(Raspbian 4.8.2-21rpi3rpi1)4.8.2。

当我尝试使用cmake . -DBUILD_CONFIG=mysql_release构建mariadb 10.1.22(来自github存储库的master分支)时出现错误:

CMake Error at cmake/jemalloc.cmake:38 (MESSAGE):
  jemalloc is not found
Call Stack (most recent call first):
  CMakeLists.txt:343 (CHECK_JEMALLOC)

构建JEMALLOC后,我使用/usr/local将其安装到sudo make install。我已在JEMALLOC_PATH=/usr/local中导出.bashrc

我不明白为什么CHECK_JEMALLOC无法找到正确的文件。文件位置列表为:

/usr/local/bin/jemalloc.sh
/usr/local/bin/jemalloc-config
/usr/local/include/jemalloc
/usr/local/include/jemalloc/jemalloc.h
/usr/local/lib/pkgconfig/jemalloc.pc
/usr/local/lib/libjemalloc.so
/usr/local/lib/libjemalloc_pic.a
/usr/local/lib/libjemalloc.so.2
/usr/local/lib/libjemalloc.a
/usr/local/share/doc/jemalloc
/usr/local/share/doc/jemalloc/jemalloc.html
/usr/local/share/man/man3/jemalloc.3

如果需要,我可以附加一个指向CMake配置日志,错误日志和终端输出的链接。

更新
我尝试仅使用cmake .并且配置部分工作,但是make失败并出现以下错误:

/home/user/Downloads/mariadb/server/storage/mroonga/vendor/groonga/lib/expr.c:6816:7: note: in expansion of macro ‘GRN_PTR_POP’
   GRN_PTR_POP(&keywords, keyword);
   ^
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/build.make:257: recipe for target 'storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/expr.c.o' failed
make[2]: *** [storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/expr.c.o] Error 4
make[2]: Leaving directory '/home/user/Downloads/mariadb/server'
CMakeFiles/Makefile2:4420: recipe for target 'storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/all' failed
make[1]: *** [storage/mroonga/vendor/groonga/lib/CMakeFiles/libgroonga.dir/all] Error 2
make[1]: Leaving directory '/home/user/Downloads/mariadb/server'
Makefile:152: recipe for target 'all' failed
make: *** [all] Error 2

0 个答案:

没有答案
相关问题