Mysql 5.7.9 cmake boost.cmake 處理

環境Centos 6.7 x64 mininal mysql

 今天忽然編譯Mysql 5.7.9 按以前的cmake .的方式 發現報錯了..提示 須要boostsql

-- BOOST_INCLUDE_DIR /usr/include
-- LOCAL_BOOST_DIR 
-- LOCAL_BOOST_ZIP 
-- Could not find (the correct version of) boost.
-- MySQL currently requires boost_1_59_0

CMake Error at cmake/boost.cmake:76 (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:80

Call Stack (most recent call first):
  cmake/boost.cmake:259 (COULD_NOT_FIND_BOOST)
  CMakeLists.txt:435 (INCLUDE)


-- Configuring incomplete, errors occurred!
See also "/tmp/mysql-5.7.9/CMakeFiles/CMakeOutput.log".

提示缺乏boost..ide

其實下邊有提示.本身安裝.或者cmake自動下載...ui

我就是用了yum 安裝boost ..spa

結果版本過低code

仍是使用提示的方法blog

cmake . -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/tmp
相關文章
相關標籤/搜索