MYSQL源碼編譯

來源:互聯網
上載者:User

標籤:unknown   exp   Requires   cmake   5.7   director   first   exe   script   

錯誤1

- Running cmake version 2.8.11-- Could NOT find Git (missing:  GIT_EXECUTABLE)-- Configuring with MAX_INDEXES = 64U-- The C compiler identification is unknown-- The CXX compiler identification is unknownCMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found.   Please set CMAKE_C_COMPILER to a valid compiler path or name.CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.CMake Error at cmake/os/Linux.cmake:41 (MESSAGE):  Unsupported compiler!Call Stack (most recent call first):  CMakeLists.txt:162 (INCLUDE)

解決辦法:yum install gcc gcc-c++
錯誤二:

- Could not find (the correct version of) boost.-- MySQL currently requires boost_1_59_0CMake Error at cmake/boost.cmake:81 (MESSAGE):  You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=<directory>  This CMake script will look for boost in <directory>.  If it is not there,  it will download and unpack it (in that directory) for you.  If you are inside a firewall, you may need to use an http proxy:  export http_proxy=http://example.com:80Call Stack (most recent call first):  cmake/boost.cmake:238 (COULD_NOT_FIND_BOOST)  CMakeLists.txt:451 (INCLUDE)

解決辦法:從MySQL 5.7.5開始Boost庫是必需的
下載 mysql-boost-5.7.12.tar.g 在 cmake 指定參數 -DWITH_BOOST=boost/boost_1_59_0/
或直接cmake指定參數 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=<directory> 系統會下載 boost

錯誤三:

-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH)CMake Error at cmake/readline.cmake:64 (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:107 (FIND_CURSES)  cmake/readline.cmake:181 (MYSQL_USE_BUNDLED_EDITLINE)  CMakeLists.txt:479 (MYSQL_CHECK_EDITLINE)

解決辦法:yum install ncurses-devel

安裝了ncurses-devel包後,刪除CMakeCache.txt,然後重新編譯,編譯成功

MYSQL源碼編譯

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.