centos6.6 32位安装 mysql5.7.16 报错

来源:4-1 LAMP之安装Mysql

512205584

2016-12-07 16:32

[root@bogon ~]# cd mysql-5.7.16

[root@bogon mysql-5.7.16]# cmake \

> -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \

> -DMYSQL_DATADIR=/mydata/mysql/data \

> -DSYSCONFDIR=/etc \

> -DMYSQL_USER=mysql \

> -DWITH_MYISAM_STORAGE_ENGINE=1 \

> -DWITH_INNOBASE_STORAGE_ENGINE=1 \

> -DWITH_ARCHIVE_STORAGE_ENGINE=1 \

> -DWITH_MEMORY_STORAGE_ENGINE=1 \

> -DWITH_READLINE=1 \

> -DMYSQL_UNIX_ADDR=/var/run/mysql/mysql.sock \

> -DMYSQL_TCP_PORT=3306 \

> -DENABLED_LOCAL_INFILE=1 \

> -DENABLE_DOWNLOADS=1 \

> -DWITH_PARTITION_STORAGE_ENGINE=1 \

> -DEXTRA_CHARSET=all \

> -DDEFAULT_CHARSET=utf8 \

> -DDEFAULT_COLLATION=utf8_general_ci \

> -DWITH_DEBUG=0 \

> -DMYSQL_MAINTAINER_MODE=0 \

> -DWITH_SSL:STRING=bundled \

> -DWITH_ZLIB:STRING=bundled \

> -DDOWNLOAD_BOOST=1 \

> -DWITH_BOOST=/usr/local/boost

-- Running cmake version 2.8.12.2

-- Could NOT find Git (missing:  GIT_EXECUTABLE) 

-- Configuring with MAX_INDEXES = 64U

-- SIZEOF_VOIDP 4

-- MySQL 5.7.16

-- Packaging as: mysql-5.7.16-Linux-i686

-- Downloading boost_1_59_0.tar.gz to /usr/local/boost

-- [download 100% complete]

-- [download 0% complete]

^C

[root@bogon mysql-5.7.16]# cmake \

> -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \

> -DMYSQL_DATADIR=/mydata/mysql/data \

> -DSYSCONFDIR=/etc \

> -DMYSQL_USER=mysql \

> -DWITH_MYISAM_STORAGE_ENGINE=1 \

> -DWITH_INNOBASE_STORAGE_ENGINE=1 \

> -DWITH_ARCHIVE_STORAGE_ENGINE=1 \

> -DWITH_MEMORY_STORAGE_ENGINE=1 \

> -DWITH_READLINE=1 \

> -DMYSQL_UNIX_ADDR=/var/run/mysql/mysql.sock \

> -DMYSQL_TCP_PORT=3306 \

> -DENABLED_LOCAL_INFILE=1 \

> -DENABLE_DOWNLOADS=1 \

> -DWITH_PARTITION_STORAGE_ENGINE=1 \

> -DEXTRA_CHARSET=all \

> -DDEFAULT_CHARSET=utf8 \

> -DDEFAULT_COLLATION=utf8_general_ci \

> -DWITH_DEBUG=0 \

> -DMYSQL_MAINTAINER_MODE=0 \

> -DWITH_SSL:STRING=bundled \

> -DWITH_ZLIB:STRING=bundled \

> -DWITH_BOOST=/usr/local/boost

-- Running cmake version 2.8.12.2

-- Could NOT find Git (missing:  GIT_EXECUTABLE) 

-- Configuring with MAX_INDEXES = 64U

-- SIZEOF_VOIDP 4

-- MySQL 5.7.16

-- Packaging as: mysql-5.7.16-Linux-i686

-- Local boost zip /usr/local/boost/boost_1_59_0.tar.gz

-- cd /usr/local/boost; tar xfz /usr/local/boost/boost_1_59_0.tar.gz

CMake Error: Problem with archive_read_next_header(): Truncated input file (needed 20992 bytes, only 0 available)

CMake Error: Problem extracting tar: /usr/local/boost/boost_1_59_0.tar.gz

-- WITH_BOOST /usr/local/boost.

-- Failed to extract files.

   Please try downloading and extracting yourself.

   The url is: http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz

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

  Giving up.

Call Stack (most recent call first):

  CMakeLists.txt:455 (INCLUDE)



-- Configuring incomplete, errors occurred!

See also "/root/mysql-5.7.16/CMakeFiles/CMakeOutput.log".


写回答 关注

2回答

  • 铿锵岁月
    2016-12-07 23:10:39
    已采纳

    好像是下载出错了

    512205...

    非常感谢!

    2017-02-06 16:00:25

    共 1 条回复 >

  • 512205584
    2016-12-12 00:38:59

    好的,我重新下载个试试

PHP环境LAMP/LNMP安装与配置

本课程适于PHP初学者,手把手教你LAMP/LNMP环境安装配置

45306 学习 · 224 问题

查看课程

相似问题