为了账号安全,请及时绑定邮箱和手机立即绑定

这个该怎么办

CMake Error at cmake/boost.cmake:101 (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 https proxy:

  export https_proxy=http://example.com:80

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


-- Configuring incomplete, errors occurred!
See also "/root/mysql-8.0.12/CMakeFiles/CMakeOutput.log".
See also "/root/mysql-8.0.12/CMakeFiles/CMakeError.log".

CMake Error at cmake/boost.cmake:101 (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 https proxy:

  export https_proxy=http://example.com:80

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


-- Configuring incomplete, errors occurred!
See also "/root/mysql-8.0.12/CMakeFiles/CMakeOutput.log".
See also "/root/mysql-8.0.12/CMakeFiles/CMakeError.log".


正在回答

1 回答

你这个问题 和我的一样  都是因为安装的Mysql-8.0.12  导致就算用yum安装了boost,也会因为版本对不上而报错

解决方法:

    1. 进入Mysql-8.0.12的安装目录

    2. 下载boost_1_67_0

    wget https://sourceforge.net/projects/boost/files/boost/1.67.0/boost_1_67_0.tar.gz/download -O ../boost_1_67_0.tar.gz

    3. 解压boost安装包

    tar -xzvf ../boost_1_67_0.tar.gz

    4. cmake编译

    cmake . \

    -DWITH_BOOST=../boost_1_67_0/ 

这样就ok了


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

这个该怎么办

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信