1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<code>-- Looking </code><code>for</code> <code>SHM_HUGETLB - found</code>
<code>-- Looking </code><code>for</code> <code>sys</code><code>/types</code><code>.h</code>
<code>-- Looking </code><code>for</code> <code>sys</code><code>/types</code><code>.h - found</code>
<code>-- Looking </code><code>for</code> <code>stdint.h</code>
<code>-- Looking </code><code>for</code> <code>stdint.h - found</code>
<code>-- Looking </code><code>for</code> <code>stddef.h</code>
<code>-- Looking </code><code>for</code> <code>stddef.h - found</code>
<code>-- Check size of void *</code>
<code>-- Check size of void * - </code><code>done</code>
<code>-- SIZEOF_VOIDP 8</code>
<code>-- Performing Test HAVE_C_SHIFT_OR_OPTIMIZATION_BUG</code>
<code>-- Performing Test HAVE_C_SHIFT_OR_OPTIMIZATION_BUG - Failed</code>
<code>-- Performing Test HAVE_CXX_SHIFT_OR_OPTIMIZATION_BUG</code>
<code>-- Performing Test HAVE_CXX_SHIFT_OR_OPTIMIZATION_BUG - Failed</code>
<code>-- Performing Test HAVE_C_FLOATING_POINT_FUSED_MADD</code>
<code>-- Performing Test HAVE_C_FLOATING_POINT_FUSED_MADD - Failed</code>
<code>-- Performing Test HAVE_CXX_FLOATING_POINT_FUSED_MADD</code>
<code>-- Performing Test HAVE_CXX_FLOATING_POINT_FUSED_MADD - Failed</code>
<code>-- Performing Test HAVE_C_FP_CONTRACT_FLAG</code>
<code>-- Performing Test HAVE_C_FP_CONTRACT_FLAG - Failed</code>
<code>-- Performing Test HAVE_CXX_FP_CONTRACT_FLAG</code>
<code>-- Performing Test HAVE_CXX_FP_CONTRACT_FLAG - Failed</code>
<code>-- MySQL 5.7.17</code>
<code>-- Packaging as: mysql-5.7.17-Linux-x86_64</code>
<code>-- Looked </code><code>for</code> <code>boost</code><code>/version</code><code>.hpp </code><code>in</code> <code>and </code>
<code>-- BOOST_INCLUDE_DIR BOOST_INCLUDE_DIR-NOTFOUND</code>
<code>-- LOCAL_BOOST_DIR </code>
<code>-- LOCAL_BOOST_ZIP </code>
<code>-- Could not </code><code>find</code> <code>(the correct version of) boost.</code>
<code>-- MySQL currently requires boost_1_59_0</code>
<code>CMake Error at cmake</code><code>/boost</code><code>.cmake:81 (MESSAGE):</code>
<code> </code><code>You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=<directory></code>
<code> </code><code>This CMake script will </code><code>look</code> <code>for</code> <code>boost </code><code>in</code> <code><directory>. If it is not there,</code>
<code> </code><code>it will download and unpack it (</code><code>in</code> <code>that directory) </code><code>for</code> <code>you.</code>
<code> </code><code>If you are inside a firewall, you may need to use an http proxy:</code>
<code> </code><code>export</code> <code>http_proxy=http:</code><code>//example</code><code>.com:80</code>
<code>Call Stack (most recent call first):</code>
<code> </code><code>cmake</code><code>/boost</code><code>.cmake:238 (COULD_NOT_FIND_BOOST)</code>
<code> </code><code>CMakeLists.txt:455 (INCLUDE)</code>
<code>-- Configuring incomplete, errors occurred!</code>
報錯資訊大概如上
解決方案:
坑一: 我的mysql是5.7.17我最開始下載下傳的boost版本是boost_1_64_0.tar.gz,然後把壓縮包放到了/usr/local/boost目錄下,再次cmake但是報錯繼續。經過百度一番後,說不需要解壓縮隻需要把壓縮包放到指定目錄就可以了。
坑二:把boost_1_64_0.tar.gz放到目錄後,再次cmake後發現識别不到,他會再次下載下傳另外一個版本
<code>[root@localhost mysql-5.7.17]</code><code># cmake . -DCMAKE_INSTALL_PREFIX=/Disk/local/mysql5.7 -DMYSQL_DATADIR=/Disk/data/mysql5.7/var -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost</code>
<code>-- Running cmake version 2.8.12.2</code>
<code>-- Configuring with MAX_INDEXES = 64U</code>
<code>-- Downloading boost_1_59_0.</code><code>tar</code><code>.gz to </code><code>/usr/local/boost</code>
<code>-- [download 100% complete]</code>
<code>-- [download 0% complete]</code>
<code>-- [download 1% complete]</code>
<code>-- [download 2% complete]</code>
<code>-- [download 3% complete]</code>
最後就逾時了,
然後我去boost官網下載下傳了他需要的版本boost_1_59_0.tar.gz
然後把下載下傳好的tar包放到/usr/local/boost目錄下然後繼續cmake就可以了
本文轉自 xinsir999 51CTO部落格,原文連結:http://blog.51cto.com/xinsir/1919244,如需轉載請自行聯系原作者