飞道的博客

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

619人阅读  评论(0)

1.CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage


  
  1. -- Running cmake version 3.11.4
  2. -- Found Git: /usr/bin/git (found version "2.18.1")
  3. -- MySQL 8.0.18
  4. 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.
  5. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
  6. CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
  7. -- Configuring incomplete, errors occurred!
  8. 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.


  
  1. Cannot find appropriate system libraries for WITH_SSL=system.
  2. Make sure you have specified a supported SSL version.
  3. Valid options are :
  4. system (use the OS openssl library),
  5. yes (synonym for system),
  6. </path/to/custom/openssl/installation>**

解决办法:

yum install -y openssl-devel

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


  
  1. -- Checking for module ‘libtirpc‘
  2. -- Package ‘libtirpc‘, required by ‘virtual:world‘, not found
  3. CMake Error at cmake/rpc.cmake:65 (MESSAGE):
  4. Could not find rpc/rpc.h in /usr/include or /usr/include/tirpc
  5. Call Stack (most recent call first):
  6. plugin/group_replication/libmysqlgcs/configure.cmake:57 (MYSQL_CHECK_RPC)
  7. plugin/group_replication/libmysqlgcs/CMakeLists.txt:28 (INCLUDE)

解决办法:

yum install -y libtirpc-devel

4.Could not find rpcgen


  
  1. CMake Error at rapid/plugin/group_replication/rpcgen.cmake:93 (MESSAGE):
  2. Could not find rpcgen
  3. Call Stack (most recent call first):
  4. rapid/plugin/group_replication/CMakeLists.txt:29 (INCLUDE)

解决办法:


  
  1. wget https://github.com/thkukuk/rpcsvc-proto/releases/download/v1.4.1/rpcsvc-proto-1.4.1.tar.xz
  2. xz -d rpcsvc-proto-1.4.1.tar.xz
  3. tar -xvf rpcsvc-proto-1.4.1.tar
  4. cd rpcsvc-proto-1.4.1
  5. ./configure
  6. make
  7. make install

 


转载:https://blog.csdn.net/l1028386804/article/details/105508896
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场