MySQL 5.7.17 安裝報錯CMake Error at cmake/boost.cmake:81 (MESSAGE)

甲骨文技術支援發表於2017-02-06

MySQL5.7.17在cmake的時候報錯如下:

點選(此處)摺疊或開啟

  1. CMake Error at cmake/boost.cmake:81 (MESSAGE):
  2. You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=
  3. This CMake script will look for boost in . If it is not there,
  4. it will download and unpack it (in that directory) for you.
  5. If you are inside a firewall, you may need to use an http proxy:
  6. export http_proxy=
  7. Call Stack (most recent call first):
  8. cmake/boost.cmake:238 (COULD_NOT_FIND_BOOST)
  9. CMakeLists.txt:455 (INCLUDE)
  10. -- Configuring incomplete, errors occurred!
  11. See also "/root/mysqlsoftware/mysql-5.7.17/CMakeFiles/CMakeOutput.log".
  12. See also "/root/mysqlsoftware/mysql-5.7.17/CMakeFiles/CMakeError.log".
解決辦法是:
1.在/usr/local下建立一個名為boost的資料夾
    mkdir -p /usr/local/boost
2.進入這個新建立的資料夾然後下載boost
    wget
3.解壓
    tar -xvzf boost_1_59_0.tar.gz
4.繼續cmake,新增上紅色部分

cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DENABLED_LOCAL_INFILE=ON \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_FEDERATED_STORAGE_ENGINE=1 \
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \
-DCOMPILATION_COMMENT='Mysqlma' \
-DWITH_READLINE=ON \
-DWITH_BOOST=/usr/local/boost \
-DSYSCONFDIR=/data/mysqldata/3306 \
-DMYSQL_UNIX_ADDR=/data/mysqldata/3306/mysql.sock






來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20893244/viewspace-2133137/,如需轉載,請註明出處,否則將追究法律責任。

相關文章