
구축하려고 해요마리아DB 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
작동하지 않습니다.
답변1
일반적으로 MariaDB 서버를 직접 컴파일하는 것은 권장되지 않습니다. 옵션과 빌드 환경의 조합이 많아 문제를 일으킬 수 있습니다.
사실 OQGRAPH 없이도 빌드가 가능하지만, 포함하더라도 여전히 깨끗한 플러그인이기 때문에 실제로 그렇게 말하지 않는 한 런타임에 로드되지 않습니다. 따라서 시스템에 Boost 및 Boost 그래프 개발 패키지만 설치하면 다른 조정 없이 빌드가 원활하게 진행됩니다.
또한 소스 패키지와 함께 제공되는 빌드 스크립트를 확인하세요.
답변2
당신은 할 수시도해 보세요:
cmake . -DWITHOUT_OQGRAPH_STORAGE_ENGINE=1