標籤:cmake error at cmake/boost.cmake:81
-- Looking for SHM_HUGETLB - found-- Looking for sys/types.h-- Looking for sys/types.h - found-- Looking for stdint.h-- Looking for stdint.h - found-- Looking for stddef.h-- Looking for stddef.h - found-- Check size of void *-- Check size of void * - done-- SIZEOF_VOIDP 8-- Performing Test HAVE_C_SHIFT_OR_OPTIMIZATION_BUG-- Performing Test HAVE_C_SHIFT_OR_OPTIMIZATION_BUG - Failed-- Performing Test HAVE_CXX_SHIFT_OR_OPTIMIZATION_BUG-- Performing Test HAVE_CXX_SHIFT_OR_OPTIMIZATION_BUG - Failed-- Performing Test HAVE_C_FLOATING_POINT_FUSED_MADD-- Performing Test HAVE_C_FLOATING_POINT_FUSED_MADD - Failed-- Performing Test HAVE_CXX_FLOATING_POINT_FUSED_MADD-- Performing Test HAVE_CXX_FLOATING_POINT_FUSED_MADD - Failed-- Performing Test HAVE_C_FP_CONTRACT_FLAG-- Performing Test HAVE_C_FP_CONTRACT_FLAG - Failed-- Performing Test HAVE_CXX_FP_CONTRACT_FLAG-- Performing Test HAVE_CXX_FP_CONTRACT_FLAG - Failed-- MySQL 5.7.17-- Packaging as: mysql-5.7.17-Linux-x86_64-- Looked for boost/version.hpp in and -- BOOST_INCLUDE_DIR BOOST_INCLUDE_DIR-NOTFOUND-- LOCAL_BOOST_DIR -- LOCAL_BOOST_ZIP -- 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:455 (INCLUDE)-- Configuring incomplete, errors occurred!
報錯資訊大概如上
解決方案:
坑一: 我的mysql是5.7.17我最開始下載的boost版本是boost_1_64_0.tar.gz,然後把壓縮包放到了/usr/local/boost目錄下,再次cmake但是報錯繼續。經過百度一番後,說不需要解壓縮只需要把壓縮包放到指定目錄就可以了。
坑二:把boost_1_64_0.tar.gz放到目錄後,再次cmake後發現識別不到,他會再次下載另外一個版本
[[email protected] mysql-5.7.17]# cmake . -DCMAKE_INSTALL_PREFIX=/Disk/local/mysql5.7 -DMYSQL_DATADIR=/Disk/data/mysql5.7/var -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost-- Running cmake version 2.8.12.2-- Configuring with MAX_INDEXES = 64U-- SIZEOF_VOIDP 8-- MySQL 5.7.17-- Packaging as: mysql-5.7.17-Linux-x86_64-- Downloading boost_1_59_0.tar.gz to /usr/local/boost-- [download 100% complete]-- [download 0% complete]-- [download 1% complete]-- [download 2% complete]-- [download 3% complete]
最後就逾時了,
然後我去boost官網下載了他需要的版本boost_1_59_0.tar.gz
:http://www.boost.org/users/history/
然後把下載好的tar包放到/usr/local/boost目錄下然後繼續cmake就可以了
本文出自 “學習改變命運” 部落格,請務必保留此出處http://xinsir.blog.51cto.com/5038915/1919244
安裝mysql-5.7.17cmke報錯