码迷,mamicode.com
首页 > 其他好文 > 详细

CMake Error at cmake/boost.cmake:76 (MESSAGE)

时间:2018-01-10 15:50:30      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:san   ref   lists   源码安装mysql   cto   boost   post   sts   default   

在源码安装mysql5.7系列时,出现如下错误:

错误现象:

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:228 (COULD_NOT_FIND_BOOST)

  CMakeLists.txt:452 (INCLUDE)

-- Configuring incomplete, errors occurred!


原因分析:没有boost包

解决方法:

1、在预编译时添加相应的选项:cmake .    -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost

[root@kongxl mysql-5.7.6-m16]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql -DWITH_INNOBASE_STORAGE_ENGINE=1 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost


2、或者下载一个boost包,放到/usr/local/boost目录下,然后在cmake后面加选项-DWITH_BOOST=/usr/local/boost

[root@kongxl mysql-5.7.6-m16]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql -DWITH_INNOBASE_STORAGE_ENGINE=1 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_BOOST=/usr/local/boost

CMake Error at cmake/boost.cmake:76 (MESSAGE)

标签:san   ref   lists   源码安装mysql   cto   boost   post   sts   default   

原文地址:https://www.cnblogs.com/youyuanjuyou/p/8258584.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!