Board logo

标题: 编译mysql8失败 [打印本页]

作者: 736248591    时间: 2019-2-7 17:23     标题: 编译mysql8失败

系统为centos7 x64,使用lnmp1.6安装。编译mysql8.0.13时候失败。
作者: licess    时间: 2019-2-8 19:43

-- PROTOBUF_VERSION_NUMBER is
-- PROTOBUF_INCLUDE_DIR /root/lnmp1.6/src/mysql-8.0.13/extra/protobuf/protobuf-2.6.1/src
-- PROTOBUF_LIBRARY protobuf
-- PROTOBUF_PROTOC_EXECUTABLE protoc
-- Could not find (the correct version of) protobuf.
-- MySQL currently requires at least protobuf version 2.5
CMake Error at cmake/protobuf.cmake:42 (MESSAGE):
  You can build with the bundled sources
Call Stack (most recent call first):
  cmake/protobuf.cmake:120 (COULD_NOT_FIND_PROTOBUF)
  CMakeLists.txt:924 (MYSQL_CHECK_PROTOBUF)

按错误信息是protobuf没找到,我们这边的系统按你的安装参数测试没有该问题
作者: 736248591    时间: 2019-2-8 20:14     标题: 回复 2# 的帖子

感谢!
我这边解决了。
重新下载mysql8.0.13.tar.gz解决问题。貌似是里面默认下载地址网络存在波动,下载下来的压缩包损坏。
作者: licess    时间: 2019-2-8 20:46

-- PROTOBUF_VERSION_NUMBER is
-- PROTOBUF_INCLUDE_DIR /root/lnmp1.6/src/mysql-8.0.13/extra/protobuf/protobuf-2.6.1/src
-- PROTOBUF_LIBRARY protobuf
-- PROTOBUF_PROTOC_EXECUTABLE protoc
-- Could not find (the correct version of) protobuf.
-- MySQL currently requires at least protobuf version 2.5
CMake Error at cmake/protobuf.cmake:42 (MESSAGE):
  You can build with the bundled sources
Call Stack (most recent call first):
  cmake/protobuf.cmake:120 (COULD_NOT_FIND_PROTOBUF)
  CMakeLists.txt:924 (MYSQL_CHECK_PROTOBUF)

按错误信息看是protobuf没有找到




欢迎光临 VPS侦探论坛 (http://bbs.vpser.net/) Powered by Discuz! 6.0.0