[MySQL] Package ‘libtirpc‘, required by ‘virtual:world‘, not found

Package 'libtirpc', required by 'virtual:world', not found

-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")

-- 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!

You can build and install libtirpc-dev from source if you prefer not to use your distribution's package manager or need a specific version. Here's how you can do it:


Steps to Build libtirpc from Source

1. Download the Source Code

You can get the latest source from the official repository or via Git:

bash 复制代码
wget https://sourceforge.net/projects/libtirpc/files/libtirpc/1.3.3/libtirpc-1.3.3.tar.bz2
tar -xjf libtirpc-1.3.3.tar.bz2
cd libtirpc-1.3.3
2. Configure the Build

Run the following commands to configure the build:

bash 复制代码
sudo apt-get install autoconf
./bootstrap
./configure --prefix=/usr/local --disable-gssapi
  • The --prefix=/usr option installs the library and headers in standard system locations.
3. Compile and Install
bash 复制代码
make
sudo make install
4. Update the Dynamic Linker Cache

After installation, update the dynamic linker cache:

bash 复制代码
sudo ldconfig
5. Verify Installation

Check if the header file and library are installed:

bash 复制代码
ls /usr/include/tirpc/rpc/rpc.h
ls /usr/lib/libtirpc.*
6. Re-run CMake

Now, try re-running CMake for your project:

bash 复制代码
rm -rf CMakeCache.txt CMakeFiles/
cmake .

Troubleshooting

  • If you encounter permission issues, use sudo where necessary.
  • If the build fails, check for missing dependencies (like autoconf, automake, libtool, or gcc).
  • If you want to install to a custom location (not /usr), use --prefix=/your/custom/path and ensure your build system can find the headers and libraries.
相关推荐
2301_809204707 分钟前
mysql在docker容器中如何部署_利用docker-compose快速启动
jvm·数据库·python
虹科网络安全8 分钟前
艾体宝产品|深度解读 Redis 8.4 新增功能:原子化 Slot 迁移(上)
数据库·redis·bootstrap
阿坤带你走近大数据32 分钟前
怎么查看当前oracle库下的表空间temp大小或者默认大小
数据库·oracle
yoyo_zzm40 分钟前
Laravel8.x新特性全解析
数据库·nginx
码界奇点1 小时前
基于Python的新浪微博数据爬虫系统设计与实现
数据库·爬虫·python·毕业设计·新浪微博·源代码管理
我科绝伦(Huanhuan Zhou)2 小时前
探索技术世界:我的GitHub数据库工具宝库
数据库·github
猫的玖月2 小时前
(一)MY SQL概述
数据库·sql
脑子进水养啥鱼?3 小时前
PostgreSQL .history 文件
数据库·postgresql
倔强的石头_3 小时前
5 个真实案例带你避坑:DolphinDB 实时写入、流订阅与高可用调优
数据库
虹科网络安全3 小时前
艾体宝新闻|Redis 月度更新速览:2026 年 3 月
数据库·redis·缓存