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