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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL 5.5編譯安裝cmake引數說明MySql編譯
- Windows下CMake編譯安裝OpenCVWindows編譯OpenCV
- 原始碼編譯MySQL Cluster7.2.15安裝過程原始碼編譯MySql
- CentOS6.7下使用cmake編譯安裝MySQL5.5.32CentOS編譯MySql
- mysql5.5資料庫cmake原始碼編譯安裝MySql資料庫原始碼編譯
- 原始碼編譯安裝MySQL5.6.12詳細過程原始碼編譯MySql
- mysql 原始碼安裝過程中錯誤總結MySql原始碼
- MySQL 5.7.17 安裝報錯CMake Error at cmake/boost.cmake:81 (MESSAGE)MySqlError
- 編譯安裝mysql編譯MySql
- Mysql 5.7.17 編譯安裝MySql編譯
- 蘋果簽名過程中App安裝出錯怎麼辦?蘋果APP
- Linux上安裝GCC編譯器過程(轉)LinuxGC編譯
- Mysql-5.5.32 cmake安裝MySql
- CMAKE安裝mysql5.5MySql
- 【MySQL安裝】Linux下安裝MySQL(預編譯)MySqlLinux編譯
- MySQL5.5.24編譯安裝MySql編譯
- MySQL 5.6.19編譯安裝MySql編譯
- protobuf cmake Visual Studio 編譯安裝 (全命令列)編譯命令列
- 編譯過程編譯
- GDB 除錯 Mysql 實戰(一)原始碼編譯安裝除錯MySql原始碼編譯
- XFree86編譯安裝透過,startx錯誤編譯
- Linux系統下自行編譯安裝MySQL及基礎配置全過程解析Linux編譯MySql
- MySql安裝過程中初始化失敗MySql
- 【mysql】配置MySQL,解決安裝過程中的問題MySql
- apache、php、mysql安裝過程ApachePHPMySql
- centos 安裝MySQL全過程CentOSMySql
- Ubuntu 18.04安裝D435i編譯環境--cmake ../ -DBUILD_EXAMPLES=true出錯等填坑Ubuntu編譯UI
- mysql5.6的安裝(cmake)MySql
- 關於jive(J道版),安裝正常,編譯出錯!編譯
- log4cxx 的編譯安裝過程和使用編譯
- 如何編譯安裝MySQL8.0編譯MySql
- 編譯安裝nginx-php-mysql編譯NginxPHPMySql
- MySQL 5.6 for REHL 6.4編譯安裝MySql編譯
- 原始碼編譯安裝MySQL 5.7.9原始碼編譯MySql
- [LAMP]Mysql-5.6.28編譯安裝LAMPMySql編譯
- 【轉】MySQL原始碼編譯安裝MySql原始碼編譯
- Jdon版jive安裝過程中,mysql資料庫連線出錯!(請幫幫忙,謝謝!)MySql資料庫
- gRPC cmake Visual Studio編譯安裝 (全命令列)RPC編譯命令列