在LXC Centos6-moban 编译安装mysql-5.6.36 时候遇见的报错

时间:2021-09-03 23:50:22
在LXC安装Centos6-moban   编译安装mysql-5.6.36
cmake . -DCMAKE_INSTALL_PREFIX=/application/mysql-5.6.36 -DMYSQL_DATADIR=/application/mysql-5.6.36/data -DMYSQL_UNIX_ADDR=/application/mysql-5.6.36/tmp/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 -DWITH_ZLIB=bundled -DWITH_SSL=bundled -DENABLED_LOCAL_INFILE=1 -DWITH_EMBEDDED_SERVER=1 -DENABLE_DOWNLOADS=1 -DWITH_DEBUG=0
报错1
CMake Error at /usr/share/cmake/Modules/TestBigEndian.cmake:44 (message):
  no suitable type found
Call Stack (most recent call first):
  configure.cmake:721 (TEST_BIG_ENDIAN)
  CMakeLists.txt:407 (INCLUDE)
 
 
-- Configuring incomplete, errors occurred!
See also "/data/mysql-5.6.36/CMakeFiles/CMakeOutput.log".
See also "/data/mysql-5.6.36/CMakeFiles/CMakeError.log".
解决
应该是缺失包
yum install -y git gcc gcc-c++ ncurses-devel bison #mysql缺失的包
yum install -y perl-devel    ## LXC缺失的包
报错2
 
 
CMake Error: The source directory "/data" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
解决
 rm CMakeCache.txt 
##这是因为已经编译过而创建的文件