CMake Error at cmake/boost.cmake:76 (MESSAGE)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.