CMake Error at plugin/group_replication/libmysqlgcs/cmake/rpcgen.cmake:104 (MESSAGE): Could not find rpcgen Call Stack (most recent call first): plugin/group_replication/libmysqlgcs/CMakeLists.txt:53 (INCLUDE)原因:
在CentOS8下编译安装MySQL8可能会出现Could not find rpcgen错误,而CentOS8默认的yum源下不提供rpcgen的安装包。所以需要到rpcgen的GitHub仓库上找,地址如下:
https://github.com/thkukuk/rpcsvc-proto/releases
解决办法:
[root@lnmp mysql-8.0.21]# cd /opt/ [root@lnmp opt]# wget https://github.com/thkukuk/rpcsvc-proto/releases/download/v1.4/rpcsvc-proto-1.4.tar.gz [root@lnmp opt]# tar xf rpcsvc-proto-1.4.tar.gz [root@lnmp opt]# cd rpcsvc-proto-1.4/ [root@lnmp rpcsvc-proto-1.4]# ./configure && make && make install重新在去预编译mysql即可解决这个错误