我正在尝试从源头构建MariaDB 5.5.27。事实上,我只需要客户端,但我似乎必须构建完整的数据库系统。
在使用cmake进行配置并随后使用make进行编译时,我遇到了以下问题:
In file included from /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:27:0,
from /usr/include/boost/smart_ptr/detail/sp_counted_base.hpp:36,
from /usr/include/boost/smart_ptr/detail/shared_count.hpp:29,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:32,
from /usr/include/boost/shared_ptr.hpp:17,
from /usr/include/boost/property_map/vector_property_map.hpp:14,
from /usr/include/boost/property_map/property_map.hpp:844,
from /home/bereziak/make/mariadb-5.5.27/storage/oqgraph/graphcore.cc:36:
/usr/include/boost/detail/sp_typeinfo.hpp: In instantiation of ‘boost::detail::sp_typeinfo boost::detail::sp_typeid_<boost::checked_array_deleter<unsigned char> >::ti_’:
/usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:149:75: instantiated from ‘void* boost::detail::sp_counted_impl_pd<P, D>::get_deleter(const boost::detail::sp_typeinfo&) [with P = unsigned char*, D = boost::checked_array_deleter<unsigned char>]’
/home/bereziak/make/mariadb-5.5.27/storage/oqgraph/graphcore.cc:1101:1: instantiated from here
/usr/include/boost/detail/sp_typeinfo.hpp:77:48: error: conversion from ‘const char*’ to non-scalar type ‘boost::detail::sp_typeinfo’ requested
make[2]: *** [storage/oqgraph/CMakeFiles/oqgraph.dir/graphcore.cc.o] Error 1
make[1]: *** [storage/oqgraph/CMakeFiles/oqgraph.dir/all] Error 2
make: *** [all] Error 2现在,由于我只需要客户端,所以在配置时考虑完全关闭OQGraph插件。但我该怎么做呢?我就是这样做的:
cmake .当然,在我的MariaDB目录中。如何从它中停用插件/部件?对于configure,我只需使用--without-plugin_oqgraph选项,我也尝试过使用cmake,但它没有起作用。
发布于 2012-10-13 14:57:31
您可以使用试着:
cmake . -DWITHOUT_OQGRAPH_STORAGE_ENGINE=1发布于 2012-10-14 22:45:14
通常不建议自己编译MariaDB服务器,有许多选项和构建环境的组合可能会导致问题发生。
的确,您可以在没有OQGRAPH的情况下进行构建,但是即使包含它,它仍然是一个干净的插件,除非您这样说,否则它不会在运行时加载。因此,如果您只是在您的系统上安装Boost和Boost图形开发包,那么构建就会进行得很好,无需进行其他调整。
还请查看源代码包提供的构建脚本。
https://unix.stackexchange.com/questions/50741
复制相似问题