背景:
在arm架构的服务器里编译mysql5.7.32,操作系统是Centos8
报错如下:
-- Looking for htole16 - found
-- Found PkgConfig: /bin/pkg-config (found version "1.4.2")
-- Checking for module 'libtirpc'
-- Package 'libtirpc', required by 'virtual:world', not found
CMake Error at cmake/rpc.cmake:76 (MESSAGE):Could not find rpc/rpc.h in /usr/include or /usr/include/tirpc
Call Stack (most recent call first):rapid/plugin/group_replication/configure.cmake:60 (MYSQL_CHECK_RPC)rapid/plugin/group_replication/CMakeLists.txt:25 (INCLUDE)-- Configuring incomplete, errors occurred!
See also "/tmp/879/mysql-5.7.32/CMakeFiles/CMakeOutput.log".
See also "/tmp/879/mysql-5.7.32/CMakeFiles/CMakeError.log".
缺少包,安装包即可。
解决办法:
yum search libtirpc
Last metadata expiration check: CST.
======================================================================= Name Exactly Matched: libtirpc =======================================================================
libtirpc.aarch64 : Transport Independent RPC Library
====================================================================== Name & Summary Matched: libtirpc ======================================================================
libtirpc-devel.aarch64 : Development files for the libtirpc libraryyum install libtirpc libtirpc-devel