日期:2014-05-16  浏览次数:20807 次

linux下cmake mariaDB时报错,该如何解决
cmake -DCMAKE_INSTALL_PREFIX=/software/mariaDB/mariadb/server -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_SSL=system
---------------------结果------------------如下

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENSSL_INCLUDE_DIR
   used as include directory in directory /software/mariaDB/mariadb-10.0.4/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of wchar_t - failed
-- Check size of wctype_t
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENSSL_INCLUDE_DIR
   used as include directory in directory /software/mariaDB/mariadb-10.0.4/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of wctype_t - failed
-- Check size of wint_t
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENSSL_INCLUDE_DIR
   used as include directory in directory /software/mariaDB/mariadb-10.0.4/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed



CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENSSL_INCLUDE_DIR
   used as include directory in directory /software/mariaDB/mariadb-10.0.4/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake faile
mariaDB

------解决方案--------------------
没有安装openssl的开发包,安装下openssl-devel类似的。