首页 > 代码库 > 安装mysql-5.7.17cmke报错
安装mysql-5.7.17cmke报错
-- 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_0 CMake 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:80 Call 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后发现识别不到,他会再次下载另外一个版本
[root@localhost 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报错
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。