请选择 进入手机版 | 继续访问电脑版

编译安装mysql8 报错:Please do not build in-source. Out-of source builds are highly

[复制链接]
查看2108 | 回复0 | 2019-7-3 16:02:22 | 显示全部楼层 |阅读模式
一、故障现象

编译安装mysql8,执行cmake命令时报错:
  1. CMake Error at CMakeLists.txt:301 (MESSAGE):
  2.   Please do not build in-source.  Out-of source builds are highly
  3.   recommended: you can have multiple builds for the same source, and there is
  4.   an easy way to do cleanup, simply remove the build directory (note that
  5.   'make clean' or 'make distclean' does *not* work)

  6.   You *can* force in-source build by invoking cmake with
  7.   -DFORCE_INSOURCE_BUILD=1


  8. -- Configuring incomplete, errors occurred!
  9. See also "/usr/local/mysql-8.0.16/CMakeFiles/CMakeOutput.log".
复制代码


二、解决方法

cmake命令加上 -DFORCE_INSOURCE_BUILD=1 参数。




上一篇:windows搭建mysql集群 启动sql节点失败
下一篇:编译安装mysql 8 报错:-- MySQL currently requires boost_1_69_0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1249

主题

2736

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
70188
QQ