问答详情
源自:4-1 LAMP之安装Mysql

这个该怎么办

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".


提问者:慕UI3386853 2018-09-13 17:53

个回答

  • 异闻师
    2018-09-17 17:41:33

    你这个问题 和我的一样  都是因为安装的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了