centos 9 编译安装 rtpengine

1:更新系统包

bash 复制代码
dnf update

2:启用EPEL仓库(提供额外软件包)

bash 复制代码
# 安装EPEL仓库
sudo dnf install epel-release -y

# 检查EPEL仓库是否启用(输出应包含epel)
dnf repolist

# 启用CRB仓库
sudo dnf config-manager --set-enabled crb

# 更新缓存
sudo dnf makecache

3:安装依赖包

bash 复制代码
dnf install -y openssl-devel libcurl-devel libevent-devel json-glib-devel 
libpcap-devel iptables-devel xmlrpc-c-devel  opus-devel spandsp-devel 
hiredis-devel iptables-devel  libwebsockets-devel libmnl-devel 
libnftnl-devel pandoc perl-Socket6 perl-Convert-Bencode gperf mysql-devel  



sudo yum install -y epel-release
sudo yum install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm

# 安装 FFmpeg 开发包
sudo yum install -y ffmpeg-devel

4:再次确认安装依赖包

bash 复制代码
sudo dnf install -y git gcc make autoconf automake libtool pkgconfig \
    glib2-devel openssl-devel libpcap-devel libevent-devel \
    iptables-devel libcurl-devel libwebsockets-devel hiredis-devel \
    spandsp-devel xmlrpc-c-devel opus-devel
复制代码
# 下载并编译bcg729库
wget https://github.com/BelledonneCommunications/bcg729/archive/refs/tags/1.1.1.tar.gz
tar zxvf bcg729-1.1.1.tar.gz && cd bcg729-1.1.1
cmake . && make && make install
ldconfig  # 更新动态库缓存[2,3](@ref)

5:下载rtpengine

复制代码
wget https://github.com/sipwise/rtpengine/archive/refs/tags/mr11.5.1.37.tar.gz

6:编译安装 rtpengine

复制代码
tar -xvf mr13.2.1.1.tar.gz

cd rtpengine-mr13.2.1.1/

7:错误信息

Package libiptc was not found in the pkg-config search path. Perhaps you should add the directory containing `libiptc.pc' to the PKG_CONFIG_PATH environment variable Package 'libiptc', required by 'virtual:world', not found

复制代码
# 下载并编译 iptables 源码
git clone git://git.netfilter.org/iptables
cd iptables
./autogen.sh && ./configure --prefix=/usr
make && sudo make install
相关推荐
未济4 天前
linux 配置环境变量
linux
傲世仙尊4 天前
目录即文件-Ext文件系统收尾篇
linux·c语言
虎头金猫4 天前
4K 视频总卡在公网带宽?用 N1 + OpenList 把网盘播放链路重新理顺
运维·服务器·网络·python·容器·beautifulsoup·pandas
_艾伦 耶格尔.4 天前
进程间通信
linux
AI职业加油站4 天前
AI智能体应用工程师证书:政策红利下的职业新风口
大数据·运维·人工智能·学习·职场发展
Liuqy-054 天前
Linux IO编程——静态库、动态库
linux
此冬歌咏4 天前
K8s 节点故障实战:优雅驱逐 31 秒,硬故障 331 秒,以及那个永远 Pending 的 Pod
运维·k8s
彧azz4 天前
Linux 环境下 Redis 学习总结:数据类型、持久化、锁、事务、主从与缓存问题
linux·redis·笔记·学习·面试
-梅4 天前
linux(8) 软硬链接
linux·运维·服务器
AIgorithmGEEK4 天前
[Linux]线程三部曲(上):一个执行流的诞生——从操作系统一路拆到 pthread_create
linux·线程·pid