우분투 서버에 MySQL 5.6.23 컴파일하여 설치하려고 하는데, 아래 오류가 발생합니다. 해결 방법 부탁해요.

$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql\
 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1\
 -DWITH_EXTRA_CHARSETS=all -DWITH_SSL=system -DWITH_ZLIB=system -DENABLED_LOCAL_INFILE=1\
 -DWITH_VALGRIND=1 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_SSL=bundled -DMYSQL_DATADIR=/db

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 /usr/src/bee/mysql-5.6.23/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 /usr/src/bee/mysql-5.6.23/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 /usr/src/bee/mysql-5.6.23/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check size of wint_t - failed
-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH) 
CMake Error at cmake/readline.cmake:85 (MESSAGE):
  Curses library not found.  Please install appropriate package,

      remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.
Call Stack (most recent call first):
  cmake/readline.cmake:128 (FIND_CURSES)
  cmake/readline.cmake:202 (MYSQL_USE_BUNDLED_EDITLINE)
  CMakeLists.txt:409 (MYSQL_CHECK_EDITLINE)


-- Configuring incomplete, errors occurred!

1 답변

0 투표

Ubuntu 서버에 설치된 CMake 버전이 구버전이라 오류가 발생하는 것입니다.

apt-get 으로 cmake 를 설치했다면, 제거하고 cmake 홈페이지에서 최신버전을 다운받아 컴파일하여 설치하시면 해결할 수 있습니다. 

# > 설치된 cmake 제거

$ apt-get --purge autoremove cmake

# > cmake 홈페이지에서 3.1.3을 다운받아 설치하는 방법

$ wget http://www.cmake.org/files/v3.1/cmake-3.1.3.tar.gz
$ tar zxvf cmake-3.1.3.tar.gz
$ cd cmake-3.1.3
$ ./bootstrap
$ make; make install

 

 

구로역 맛집 시흥동 맛집
이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.
add
...