MariaDB 10.1原始碼安裝報錯"Unknown CMake command "CHECK_CXX_SYMBOL_EXISTS""
--MariaDB 10.1原始碼安裝報錯
[root@localhost install]# cd mariadb-10.1.14
[root@localhost mariadb-10.1.14]# cmake . -DCMAKE_INSTALL_PREFIX=/maria -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DENABLED_LOCAL_INFILE=ON -DWITH_XTRADB_STORAGE_ENGINE=1 -
DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_FEDERATEDX_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DCOMPILATION_COMMENT='MariaDB 10.1 production environment' -DWITH_READLINE=ON -DSYSCONFDIR=/maria_data/cnf -DMYSQL_UNIX_ADDR=/maria_data/maria.sock -DMYSQL_DATADIR=/maria_data
.....
-- Looking for libstemmer.h - not found
-- Looking for sb_stemmer_list in stemmer
-- Looking for sb_stemmer_list in stemmer - not found
-- checking for module 'libzmq'
-- package 'libzmq' not found
-- Looking for event_init in event
-- Looking for event_init in event - not found
-- checking for module 'msgpack'
-- package 'msgpack' not found
-- Looking for msgpack_version in msgpack
-- Looking for msgpack_version in msgpack - not found
-- Performing Test HAVE_C__Wno_write_strings
-- Performing Test HAVE_C__Wno_write_strings - Success
-- Performing Test HAVE_CXX__Wno_write_strings
-- Performing Test HAVE_CXX__Wno_write_strings - Success
-- Configuring OQGraph
-- Could NOT find Boost
-- Boost not found. OQGraph will not be compiled
-- Requisites for OQGraph not met. OQGraph will not be compiled
-- Looking for FascistCheckUser in crack
-- Looking for FascistCheckUser in crack - not found
-- Looking for include files HAVE_CRACK_H
-- Looking for include files HAVE_CRACK_H - not found.
-- Found GSSAPI: -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
CMake Error at plugin/auth_gssapi/CMakeLists.txt:23 (INCLUDE):
include could not find load file:
CheckCXXSymbolExists
CMake Error at plugin/auth_gssapi/CMakeLists.txt:24 (CHECK_CXX_SYMBOL_EXISTS):
Unknown CMake command "CHECK_CXX_SYMBOL_EXISTS".
-- Configuring incomplete, errors occurred!
報錯原因:
cmake的版本太低
--檢視cmake的版本
[root@localhost mariadb-10.1.14]# cmake --version
cmake version 2.8.2
解決方法:
安裝新版本的cmake工具——cmake-3.5.2
--解除安裝2.8版本的cmake工具
[root@localhost cmake-2.8.2]# make uninstall
-- Uninstalling "/usr/local/doc/cmake-2.8/cmake-properties.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/cmake-variables.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/cmake-modules.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/cmake-commands.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/cmake-compatcommands.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/ctest.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/ctest.docbook"
-- Uninstalling "/usr/local/doc/cmake-2.8/cpack.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/cpack.docbook"
-- Uninstalling "/usr/local/doc/cmake-2.8/ccmake.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/ccmake.docbook"
Built target uninstall
--下載新版本的cmake工具
[root@localhost install]# wget --no-check-certificate
--2016-06-17 05:21:22--
Resolving cmake.org... 66.194.253.19
Connecting to cmake.org|66.194.253.19|:443... connected.
WARNING: certificate common name “*.kitware.com” doesn’t match requested host name “cmake.org”.
HTTP request sent, awaiting response... 200 OK
Length: 6863498 (6.5M) [application/x-gzip]
Saving to: “cmake-3.5.2.tar.gz”
100%[===================================================================================================================>] 6,863,498 137K/s in 65s
2016-06-17 05:22:35 (104 KB/s) - “cmake-3.5.2.tar.gz” saved [6863498/6863498]
[root@localhost install]# tar fxvz cmake-3.5.2.tar.gz
[root@localhost install]# cd cmake-3.5.2
[root@localhost cmake-3.5.2]# ./bootstrap
--編譯安裝
[root@localhost cmake-3.5.2]# make
.....
[ 98%] Building C object Tests/CMakeLib/PseudoMemcheck/NoLog/CMakeFiles/pseudonl_BC.dir/ret0.c.o
[ 99%] Linking C executable BC
[ 99%] Built target pseudonl_BC
Scanning dependencies of target pseudonl_purify
[ 99%] Building C object Tests/CMakeLib/PseudoMemcheck/NoLog/CMakeFiles/pseudonl_purify.dir/ret0.c.o
[ 99%] Linking C executable purify
[ 99%] Built target pseudonl_purify
Scanning dependencies of target pseudonl_valgrind
[ 99%] Building C object Tests/CMakeLib/PseudoMemcheck/NoLog/CMakeFiles/pseudonl_valgrind.dir/ret0.c.o
[ 99%] Linking C executable valgrind
[ 99%] Built target pseudonl_valgrind
Scanning dependencies of target pseudo_emulator
[ 99%] Building C object Tests/RunCMake/CMakeFiles/pseudo_emulator.dir/pseudo_emulator.c.o
[ 99%] Linking C executable pseudo_emulator
[ 99%] Built target pseudo_emulator
Scanning dependencies of target pseudo_iwyu
[100%] Building C object Tests/RunCMake/CMakeFiles/pseudo_iwyu.dir/pseudo_iwyu.c.o
[100%] Linking C executable pseudo_iwyu
[100%] Built target pseudo_iwyu
Scanning dependencies of target foo
[100%] Building CXX object Tests/FindPackageModeMakefileTest/CMakeFiles/foo.dir/foo.cpp.o
[100%] Linking CXX static library libfoo.a
[100%] Built target foo
[root@localhost cmake-3.5.2]# make install
.....
-- Installing: /usr/local/bin/ccmake
-- Installing: /usr/local/bin/cmake
-- Installing: /usr/local/bin/ctest
-- Installing: /usr/local/bin/cpack
-- Installing: /usr/local/share/cmake-3.5/include/cmCPluginAPI.h
-- Installing: /usr/local/share/cmake-3.5/editors/vim/cmake-help.vim
-- Installing: /usr/local/share/cmake-3.5/editors/vim/cmake-indent.vim
-- Installing: /usr/local/share/cmake-3.5/editors/vim/cmake-syntax.vim
-- Installing: /usr/local/share/cmake-3.5/editors/emacs/cmake-mode.el
-- Installing: /usr/local/share/aclocal/cmake.m4
-- Installing: /usr/local/share/cmake-3.5/completions/cmake
-- Installing: /usr/local/share/cmake-3.5/completions/cpack
-- Installing: /usr/local/share/cmake-3.5/completions/ctest
--檢視cmake的版本
[root@localhost cmake-3.5.2]# cmake --version
cmake version 3.5.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
[root@localhost install]# cd mariadb-10.1.14
[root@localhost mariadb-10.1.14]# cmake . -LH
--可以正常進行編譯
[root@localhost mariadb-10.1.14]# cmake . -DCMAKE_INSTALL_PREFIX=/maria \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DENABLED_LOCAL_INFILE=ON \
-DWITH_XTRADB_STORAGE_ENGINE=1 \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_FEDERATEDX_STORAGE_ENGINE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
-DCOMPILATION_COMMENT='MariaDB 10.1 production environment' \
-DWITH_READLINE=ON \
-DSYSCONFDIR=/maria_data/cnf \
-DMYSQL_UNIX_ADDR=/maria_data/maria.sock \
-DMYSQL_DATADIR=/maria_data
-- Running cmake version 3.5.2
-- MariaDB 10.1.14
-- Packaging as: mariadb-10.1.14-Linux-x86_64
-- OPENSSL_INCLUDE_DIR = /usr/include
-- OPENSSL_LIBRARIES = /usr/lib64/libssl.so
-- CRYPTO_LIBRARY = /usr/lib64/libcrypto.so
-- OPENSSL_MAJOR_VERSION = 1
-- SSL_LIBRARIES = /usr/lib64/libssl.so;/usr/lib64/libcrypto.so;dl
-- Checking for one of the modules 'libsystemd;libsystemd-daemon'
-- Systemd features not enabled
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
-- Configuring done
-- Generating done
-- Build files have been written to: /install/mariadb-10.1.14
[root@localhost install]# cd mariadb-10.1.14
[root@localhost mariadb-10.1.14]# cmake . -DCMAKE_INSTALL_PREFIX=/maria -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DENABLED_LOCAL_INFILE=ON -DWITH_XTRADB_STORAGE_ENGINE=1 -
DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_FEDERATEDX_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DCOMPILATION_COMMENT='MariaDB 10.1 production environment' -DWITH_READLINE=ON -DSYSCONFDIR=/maria_data/cnf -DMYSQL_UNIX_ADDR=/maria_data/maria.sock -DMYSQL_DATADIR=/maria_data
.....
-- Looking for libstemmer.h - not found
-- Looking for sb_stemmer_list in stemmer
-- Looking for sb_stemmer_list in stemmer - not found
-- checking for module 'libzmq'
-- package 'libzmq' not found
-- Looking for event_init in event
-- Looking for event_init in event - not found
-- checking for module 'msgpack'
-- package 'msgpack' not found
-- Looking for msgpack_version in msgpack
-- Looking for msgpack_version in msgpack - not found
-- Performing Test HAVE_C__Wno_write_strings
-- Performing Test HAVE_C__Wno_write_strings - Success
-- Performing Test HAVE_CXX__Wno_write_strings
-- Performing Test HAVE_CXX__Wno_write_strings - Success
-- Configuring OQGraph
-- Could NOT find Boost
-- Boost not found. OQGraph will not be compiled
-- Requisites for OQGraph not met. OQGraph will not be compiled
-- Looking for FascistCheckUser in crack
-- Looking for FascistCheckUser in crack - not found
-- Looking for include files HAVE_CRACK_H
-- Looking for include files HAVE_CRACK_H - not found.
-- Found GSSAPI: -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
CMake Error at plugin/auth_gssapi/CMakeLists.txt:23 (INCLUDE):
include could not find load file:
CheckCXXSymbolExists
CMake Error at plugin/auth_gssapi/CMakeLists.txt:24 (CHECK_CXX_SYMBOL_EXISTS):
Unknown CMake command "CHECK_CXX_SYMBOL_EXISTS".
-- Configuring incomplete, errors occurred!
報錯原因:
cmake的版本太低
--檢視cmake的版本
[root@localhost mariadb-10.1.14]# cmake --version
cmake version 2.8.2
解決方法:
安裝新版本的cmake工具——cmake-3.5.2
--解除安裝2.8版本的cmake工具
[root@localhost cmake-2.8.2]# make uninstall
-- Uninstalling "/usr/local/doc/cmake-2.8/cmake-properties.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/cmake-variables.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/cmake-modules.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/cmake-commands.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/cmake-compatcommands.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/ctest.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/ctest.docbook"
-- Uninstalling "/usr/local/doc/cmake-2.8/cpack.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/cpack.docbook"
-- Uninstalling "/usr/local/doc/cmake-2.8/ccmake.txt"
-- Uninstalling "/usr/local/doc/cmake-2.8/ccmake.docbook"
Built target uninstall
--下載新版本的cmake工具
[root@localhost install]# wget --no-check-certificate
--2016-06-17 05:21:22--
Resolving cmake.org... 66.194.253.19
Connecting to cmake.org|66.194.253.19|:443... connected.
WARNING: certificate common name “*.kitware.com” doesn’t match requested host name “cmake.org”.
HTTP request sent, awaiting response... 200 OK
Length: 6863498 (6.5M) [application/x-gzip]
Saving to: “cmake-3.5.2.tar.gz”
100%[===================================================================================================================>] 6,863,498 137K/s in 65s
2016-06-17 05:22:35 (104 KB/s) - “cmake-3.5.2.tar.gz” saved [6863498/6863498]
[root@localhost install]# tar fxvz cmake-3.5.2.tar.gz
[root@localhost install]# cd cmake-3.5.2
[root@localhost cmake-3.5.2]# ./bootstrap
--編譯安裝
[root@localhost cmake-3.5.2]# make
.....
[ 98%] Building C object Tests/CMakeLib/PseudoMemcheck/NoLog/CMakeFiles/pseudonl_BC.dir/ret0.c.o
[ 99%] Linking C executable BC
[ 99%] Built target pseudonl_BC
Scanning dependencies of target pseudonl_purify
[ 99%] Building C object Tests/CMakeLib/PseudoMemcheck/NoLog/CMakeFiles/pseudonl_purify.dir/ret0.c.o
[ 99%] Linking C executable purify
[ 99%] Built target pseudonl_purify
Scanning dependencies of target pseudonl_valgrind
[ 99%] Building C object Tests/CMakeLib/PseudoMemcheck/NoLog/CMakeFiles/pseudonl_valgrind.dir/ret0.c.o
[ 99%] Linking C executable valgrind
[ 99%] Built target pseudonl_valgrind
Scanning dependencies of target pseudo_emulator
[ 99%] Building C object Tests/RunCMake/CMakeFiles/pseudo_emulator.dir/pseudo_emulator.c.o
[ 99%] Linking C executable pseudo_emulator
[ 99%] Built target pseudo_emulator
Scanning dependencies of target pseudo_iwyu
[100%] Building C object Tests/RunCMake/CMakeFiles/pseudo_iwyu.dir/pseudo_iwyu.c.o
[100%] Linking C executable pseudo_iwyu
[100%] Built target pseudo_iwyu
Scanning dependencies of target foo
[100%] Building CXX object Tests/FindPackageModeMakefileTest/CMakeFiles/foo.dir/foo.cpp.o
[100%] Linking CXX static library libfoo.a
[100%] Built target foo
[root@localhost cmake-3.5.2]# make install
.....
-- Installing: /usr/local/bin/ccmake
-- Installing: /usr/local/bin/cmake
-- Installing: /usr/local/bin/ctest
-- Installing: /usr/local/bin/cpack
-- Installing: /usr/local/share/cmake-3.5/include/cmCPluginAPI.h
-- Installing: /usr/local/share/cmake-3.5/editors/vim/cmake-help.vim
-- Installing: /usr/local/share/cmake-3.5/editors/vim/cmake-indent.vim
-- Installing: /usr/local/share/cmake-3.5/editors/vim/cmake-syntax.vim
-- Installing: /usr/local/share/cmake-3.5/editors/emacs/cmake-mode.el
-- Installing: /usr/local/share/aclocal/cmake.m4
-- Installing: /usr/local/share/cmake-3.5/completions/cmake
-- Installing: /usr/local/share/cmake-3.5/completions/cpack
-- Installing: /usr/local/share/cmake-3.5/completions/ctest
--檢視cmake的版本
[root@localhost cmake-3.5.2]# cmake --version
cmake version 3.5.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
[root@localhost install]# cd mariadb-10.1.14
[root@localhost mariadb-10.1.14]# cmake . -LH
--可以正常進行編譯
[root@localhost mariadb-10.1.14]# cmake . -DCMAKE_INSTALL_PREFIX=/maria \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DENABLED_LOCAL_INFILE=ON \
-DWITH_XTRADB_STORAGE_ENGINE=1 \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_FEDERATEDX_STORAGE_ENGINE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
-DCOMPILATION_COMMENT='MariaDB 10.1 production environment' \
-DWITH_READLINE=ON \
-DSYSCONFDIR=/maria_data/cnf \
-DMYSQL_UNIX_ADDR=/maria_data/maria.sock \
-DMYSQL_DATADIR=/maria_data
-- Running cmake version 3.5.2
-- MariaDB 10.1.14
-- Packaging as: mariadb-10.1.14-Linux-x86_64
-- OPENSSL_INCLUDE_DIR = /usr/include
-- OPENSSL_LIBRARIES = /usr/lib64/libssl.so
-- CRYPTO_LIBRARY = /usr/lib64/libcrypto.so
-- OPENSSL_MAJOR_VERSION = 1
-- SSL_LIBRARIES = /usr/lib64/libssl.so;/usr/lib64/libcrypto.so;dl
-- Checking for one of the modules 'libsystemd;libsystemd-daemon'
-- Systemd features not enabled
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
-- Configuring done
-- Generating done
-- Build files have been written to: /install/mariadb-10.1.14
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2120398/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mariaDB 10.1原始碼安裝原始碼
- MariaDB 10.1原始碼安裝流程(CentOS 6.5)原始碼CentOS
- MariaDB 10.1原始碼安裝執行mysql_install_db報錯"system tables failed"原始碼MySqlAI
- MySQL 5.7.17 安裝報錯CMake Error at cmake/boost.cmake:81 (MESSAGE)MySqlError
- MariaDB原始碼除錯原始碼除錯
- centos7.4原始碼安裝php,swoole,nginx,redis,mariadbCentOS原始碼PHPNginxRedis
- Linux 安裝 mysql 5.5.8(cmake原始碼安裝mysql5.5以上版本)[轉]LinuxMySql原始碼
- 安裝mysql原始碼出錯MySql原始碼
- mysql5.5資料庫cmake原始碼編譯安裝MySql資料庫原始碼編譯
- cmake報錯CMake Error: Could not find CMAKE_ROOTError
- MySQL 5.5 原始碼安裝報錯"[ERROR] Can't start server"MySql原始碼ErrorServer
- samba原始碼安裝及除錯Samba原始碼除錯
- MariaDB安裝
- 原始碼編譯安裝 httpd2.4+MariaDB5.5+php5.4(LAMP)原始碼編譯httpdPHPLAMP
- ubuntu安裝CMakeUbuntu
- CentOS 已安裝virtualenv, 但還是報錯誤 bash: virtualenv: command not foundCentOS
- Mysql安裝過程中CMAKE編譯出錯MySql編譯
- MariaDB 安裝配置
- (CMake):CMake安裝及快速入門案例
- mysql還原資料庫遇到Unknown command 錯誤MySql資料庫
- 安裝ionic 報錯 安裝canvas報錯 解決辦法Canvas
- nginx安裝報錯Nginx
- 安裝VUE報錯Vue
- 35_安裝mariadb
- CMake的安裝和使用
- CentOS下安裝配置cmakeCentOS
- Mysql-5.5.32 cmake安裝MySql
- CMAKE安裝mysql5.5MySql
- 安裝報錯,輸入新的admin密碼後提交報錯.密碼
- AIX安裝ORACLE-CRS報錯 0403-012 A test command parameter is not validAIOracle
- snipMate安裝後報錯
- 安裝heapster報錯
- LAMP原始碼安裝+wordpress安裝LAMP原始碼
- 在Ubuntu上安裝MariaDBUbuntu
- Centos下安裝mariaDB方法CentOS
- MariaDB的安裝與配置
- centos7 安裝 mariadbCentOS
- mingw64 cmake build commandUI