Mysql安裝過程中CMAKE編譯出錯
問題現象: Mysql安裝過程中CMAKE編譯出錯
環境Centos7.1+mysql5.6.21
[root@linfytest3 mysql-5.6.21]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql
-- Running cmake version 3.0.2
-- MySQL 5.6.21
-- Packaging as: mysql-5.6.21-Linux-x86_64
-- HAVE_VISIBILITY_HIDDEN
-- HAVE_VISIBILITY_HIDDEN
-- HAVE_VISIBILITY_HIDDEN
-- 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:427 (MYSQL_CHECK_EDITLINE)
-- Configuring incomplete, errors occurred!
See also "/soft/mysql-5.6.21/CMakeFiles/CMakeOutput.log".
See also "/soft/mysql-5.6.21/CMakeFiles/CMakeError.log".
出錯原因:沒有安裝包ncurses-devel
解決辦法:
[root@linfytest3 Packages]# ls -ltr ncurses-devel*
-rw-rw-r--. 1 linfy linfy 729820 Jul 4 2014 ncurses-devel-5.9-13.20130511.el7.x86_64.rpm
[root@linfytest3 Packages]# rpm -ivh ncurses-devel-5.9-13.20130511.el7.x86_64.rpm
warning: ncurses-devel-5.9-13.20130511.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:ncurses-devel-5.9-13.20130511.el7################################# [100%]
環境Centos7.1+mysql5.6.21
[root@linfytest3 mysql-5.6.21]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql
-- Running cmake version 3.0.2
-- MySQL 5.6.21
-- Packaging as: mysql-5.6.21-Linux-x86_64
-- HAVE_VISIBILITY_HIDDEN
-- HAVE_VISIBILITY_HIDDEN
-- HAVE_VISIBILITY_HIDDEN
-- 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:427 (MYSQL_CHECK_EDITLINE)
-- Configuring incomplete, errors occurred!
See also "/soft/mysql-5.6.21/CMakeFiles/CMakeOutput.log".
See also "/soft/mysql-5.6.21/CMakeFiles/CMakeError.log".
出錯原因:沒有安裝包ncurses-devel
解決辦法:
[root@linfytest3 Packages]# ls -ltr ncurses-devel*
-rw-rw-r--. 1 linfy linfy 729820 Jul 4 2014 ncurses-devel-5.9-13.20130511.el7.x86_64.rpm
[root@linfytest3 Packages]# rpm -ivh ncurses-devel-5.9-13.20130511.el7.x86_64.rpm
warning: ncurses-devel-5.9-13.20130511.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:ncurses-devel-5.9-13.20130511.el7################################# [100%]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/543979/viewspace-1669265/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Windows下CMake編譯安裝OpenCVWindows編譯OpenCV
- CentOS6.7下使用cmake編譯安裝MySQL5.5.32CentOS編譯MySql
- gRPC cmake Visual Studio編譯安裝 (全命令列)RPC編譯命令列
- protobuf cmake Visual Studio 編譯安裝 (全命令列)編譯命令列
- 【MySQL安裝】Linux下安裝MySQL(預編譯)MySqlLinux編譯
- Ubuntu 18.04安裝D435i編譯環境--cmake ../ -DBUILD_EXAMPLES=true出錯等填坑Ubuntu編譯UI
- Linux系統下自行編譯安裝MySQL及基礎配置全過程解析Linux編譯MySql
- 蘋果簽名過程中App安裝出錯怎麼辦?蘋果APP
- GDB 除錯 Mysql 實戰(一)原始碼編譯安裝除錯MySql原始碼編譯
- 編譯過程編譯
- 【轉】MySQL原始碼編譯安裝MySql原始碼編譯
- 編譯安裝nginx-php-mysql編譯NginxPHPMySql
- 如何編譯安裝MySQL8.0編譯MySql
- MySql安裝過程中初始化失敗MySql
- MySQL5.7.16原始碼編譯安裝MySql原始碼編譯
- Cnetos7編譯安裝MySQL教程。編譯MySql
- 阿里雲mysql原始碼編譯安裝阿里MySql原始碼編譯
- orthanc 編譯安裝mysql S3編譯MySqlS3
- Centos5.5中安裝Mysql5.5過程分享CentOSMySql
- Linux環境下, 原始碼編譯安裝詳解 (編譯CMake 3.15 和 gcc 5.3.0 為例)Linux原始碼編譯GC
- 在WSL下為OpenWRT交叉編譯出CMake編譯
- mysql在linux上cmake安裝方法(自己安裝版)MySqlLinux
- mysql5.7.23安裝詳細過程MySql
- Ubuntu 16.04 安裝 MySQL 8.0 全過程UbuntuMySql
- redhat 5.4下安裝MYSQL全過程RedhatMySql
- 如何用cmake編譯編譯
- CMake for Mac編譯工具Mac編譯
- cesium原始碼編譯除錯及呼叫全過程原始碼編譯除錯
- MySQL免編譯安裝及登入(5.6.36)MySql編譯
- Centos 7.6 下Mysql8.0.16編譯安裝CentOSMySql編譯
- MAC M3 編譯安裝mysql 5.7.44Mac編譯MySql
- 編譯連結過程編譯
- C++ 編譯過程C++編譯
- 編譯過程簡介編譯
- Win10下Qt+OpenCV+Cmake編譯錯誤Win10QTOpenCV編譯
- 編譯Sophus時cmake出現警告deprecated-declarations編譯
- C語言程式碼區錯誤以及編譯過程C語言編譯
- Ubuntu 18.04系統編譯安裝MySQL 5.7教程。Ubuntu編譯MySql
- windows 7 vs 2013編譯與安裝MySQL 5.7Windows編譯MySql