cmake/boost.cmake での CMake エラー:81 (メッセージ): -DDOWNLOAD_BOOST を使用してダウンロードできます

CMake Error at cmake/boost.cmake:81 (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 http proxy:

  export http_proxy=http://example.com:80

Call Stack (most recent call first):
  cmake/boost.cmake:167 (COULD_NOT_FIND_BOOST)
  CMakeLists.txt:507 (INCLUDE)


-- Configuring incomplete, errors occurred!
See also "/root/mysql-5.7.24/CMakeFiles/CMakeOutput.log".
See also "/root/mysql-5.7.24/CMakeFiles/CMakeError.log".

解決策は次のとおりです。 1. /usr/local mkdir -p /usr/local/boost
の下に boost という名前のフォルダーを作成します。 2. この新しく作成したフォルダーに入り、boost をダウンロードします。

3.
tar -xvzf boost_1_59_0.tar.gzを解凍します
。 4. cmake を続行し、灰色の部分を追加します。

cmake 。-DCMAKE_INSTALL_PREFIX=/usr/local/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 -D WITHOUT_EXAMPLE_STORAGE_ENGINE=
1
-DWITH_PARTITION_STORAGE_ENGINE=1
-DWITH_PERFSCHEMA_STORAGE_ENGINE=1
-DCOMPILATION_COMMENT='Mysqlma '
-DWITH_READLINE=ON \

-DWITH_BOOST=/usr/local/boost \

-DSYSCONFDIR=/data/mysqldata/3306
-DMYSQL_UNIX_ADDR=/data/mysqldata/3306/mysql.sock

おすすめ

転載: blog.csdn.net/weixin_42602433/article/details/86502068