MySQL5.7.17安装报错CMakeErroratcmake/boost.cmake:81(MESSAGE)
MySQL5.7.17在cmake的时候报错如下:
点击(此处)折叠或打开
创新互联公司是专业的耒阳网站建设公司,耒阳接单;提供网站设计制作、成都做网站,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行耒阳网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!
-
CMake Error at cmake/boost.cmake:81 (MESSAGE):
-
You can download it with -DDOWNLOAD_BOOST=1 -DWITH_BOOST=
-
-
-
This CMake script will look for boost in . 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:238 (COULD_NOT_FIND_BOOST)
-
CMakeLists.txt:455 (INCLUDE)
-
-
-
-
-
-- Configuring incomplete, errors occurred!
-
See also "/root/mysqlsoftware/mysql-5.7.17/CMakeFiles/CMakeOutput.log".
-
See also "/root/mysqlsoftware/mysql-5.7.17/CMakeFiles/CMakeError.log".
解决办法是:
1.在/usr/local下创建一个名为boost的文件夹 mkdir -p /usr/local/boost2.进入这个新创建的文件夹然后下载boost
wget http://www.sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz
3.解压 tar -xvzf boost_1_59_0.tar.gz4.继续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 \
-DWITHOUT_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
本文标题:MySQL5.7.17安装报错CMakeErroratcmake/boost.cmake:81(MESSAGE)
网站URL:
http://dzwzjz.com/article/jpgpee.html