天天看点

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