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.18CMake Error: CMake was unable to fi...
·
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),
</path/to/custom/openssl/installation>**
解决办法:
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
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献13条内容
所有评论(0)