cmake 安装mysql 报错_MySQL之——安装MySQL报错处理解决方案

1.CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

-- Running cmake version 3.11.4

-- Found Git: /usr/bin/git (found version "2.18.1")

-- MySQL 8.0.18

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

-- Configuring incomplete, errors occurred!

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

解决办法:

yum install -y make

2.Cannot find appropriate system libraries for WITH_SSL=system.

Cannot find appropriate system libraries for WITH_SSL=system.

Make sure you have specified a supported SSL version.

Valid options are :

system (use the OS openssl library),

yes (synonym for system),

**

解决办法:

yum install -y openssl-devel

3.Package ‘libtirpc‘, required by ‘virtual:world‘, not found

-- Checking for module ‘libtirpc‘

-- Package ‘libtirpc‘, required by ‘virtual:world‘, not found

CMake Error at cmake/rpc.cmake:65 (MESSAGE):

Could not find rpc/rpc.h in /usr/include or /usr/include/tirpc

Call Stack (most recent call first):

plugin/group_replication/libmysqlgcs/configure.cmake:57 (MYSQL_CHECK_RPC)

plugin/group_replication/libmysqlgcs/CMakeLists.txt:28 (INCLUDE)

解决办法:

yum install -y libtirpc-devel

4.Could not find rpcgen

CMake Error at rapid/plugin/group_replication/rpcgen.cmake:93 (MESSAGE):

Could not find rpcgen

Call Stack (most recent call first):

rapid/plugin/group_replication/CMakeLists.txt:29 (INCLUDE)

解决办法:

wget https://github.com/thkukuk/rpcsvc-proto/releases/download/v1.4.1/rpcsvc-proto-1.4.1.tar.xz

xz -d rpcsvc-proto-1.4.1.tar.xz

tar -xvf rpcsvc-proto-1.4.1.tar

cd rpcsvc-proto-1.4.1

./configure

make

make install

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值