- 论坛徽章:
- 0
|
最小化安装centos 5.6用YUM安装的cmake ,的编译mysql的数据为
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql-5.5.11/\
-DMYSQL_DATADIR=/data/mysql\
-DMYSQL_UNIX_ADDR=/data/mysql/mysqld.sock\
-DWITH_INNOBASE_STORAGE_ENGINE=1\
-DENABLED_LOCAL_INFILE=1\
-DMYSQL_TCP_PORT=3306\
-DEXTRA_CHARSETS=all\
-DDEFAULT_CHARSET=utf8\
-DDEFAULT_COLLATION=utf8-general_ci\
-DMYSQL_UNIX_ADDR=/data/mysql/mysql.sock\
-DMYSQL_USER=mysql\
-DWITH_DEBUG=0\
-DWITH_COMMENT=Source\
-DWITH_SSL=yes\
-DWITH_READLINE=on\
-DWITH_ZLIB
编译出错如下:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- MySQL 5.5.11
-- Could NOT find Threads (missing: Threads_FOUND)
CMake Error at configure.cmake:152 (LIST):
list sub-command REMOVE_DUPLICATES requires list to be present.
Call Stack (most recent call first):
CMakeLists.txt:239 (INCLUDE)
-- Could NOT find Threads (missing: Threads_FOUND)
-- Check if the system is big endian
-- Searching 16 bit integer
CMake Error at /usr/local/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (MESSAGE):
no suitable type found
Call Stack (most recent call first):
configure.cmake:522 (TEST_BIG_ENDIAN)
CMakeLists.txt:239 (INCLUDE)
-- Configuring incomplete, errors occurred!
在baidu.com及google.com都搜过,没有找到相应的答案,谁知道这是什么问题吗. |
|