Error when compiling mysql5.7.9.
CMake Error at cmake/boost.cmake:76 (MESSAGE):You can download it with-ddownload_boost=1-dwith_boost=<directory>This CMake script would look forBoost in <directory>.IfIt is not there,It'll download andUnpackIt (in that directory) forYou.IfYou is inside a firewall, may need to UseAn HTTP proxy:Export Http_proxy=http://example.com:80Call Stack (most recent call first):CMake/boost.cmake:228(could_not_find_boost) cmakelists. txt:435 (INCLUDE) --Configuring incomplete, Errors occurred!See also"/byrd/tools/mysql-5.7.9/cmakefiles/cmakeoutput.log".
Workaround One
MySQL-5.7.9]# cmake.-dcmake_install_prefix=/byrd/service/mysql-5.7.9-dmysql_datadir=/byrd /service/mysql-5.7.9/data-dmysql_unix_addr=/byrd/service/mysql-5.7.9/tmp/mysql.sock-dmysql_user=mysql-ddefault _charset=utf8-ddefault_collation=utf8_general_ci-denabled_local_infile=on-dwith_innobase_storage_engine=1- Dwith_federated_storage_engine=1-dwith_blackhole_storage_engine=1-dwithout_example_storage_engine=1-ddownload_ Boost=1-dwith_boost=/usr/local/boost
Workaround Two
Download a BOOST package, put it in the/usr/local/boost directory, and then add the option after CMake-dwith_boost=/usr/local/boos
CMake Error at cmake/boost.cmake:76 (MESSAGE):