The following error occurred when installing the mysql5.7 series in the source code:
Error phenomena:
CMake Error at cmake/boost.cmake:76 (MESSAGE):
You can download it with-ddownload_boost=1-dwith_boost=<directory>
This CMake script would look-for-boost in <directory> If It is not there,
It'll download and unpack it (in this directory) for you.
If you were inside a firewall, you could 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!
Cause analysis: no boost package
Workaround:
1. Add the appropriate option at precompilation: CMake. -ddownload_boost=1-dwith_boost=/usr/local/boost
[email protected] 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, or download a boost pack and put it in /usr/local/boost directory, and then add the option -dwith_boost=/usr/local/boost
[email protected] 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
This article is from the "Mountain Road 18 Bend" blog, please be sure to keep this source http://kongzi68.blog.51cto.com/1432619/1629390
CMake Error at cmake/boost.cmake:76 (MESSAGE)