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
相关推荐
lsnm19 分钟前
【LINUX网络】网络socet接口的基本使用以及实现简易UDP通信
linux·网络·c++·网络协议·ubuntu·udp·centos
うちは止水1 小时前
windows 访问ubuntu samba配置
linux·windows·ubuntu·samba
笨手笨脚の1 小时前
Nginx-4 Nginx 的7层反向代理
运维·nginx·php
小呆瓜历险记2 小时前
链接脚本基础语法
linux·服务器·ubuntu
444A4E2 小时前
理解Linux环境:从命令行参数到环境变量
linux·操作系统
阿巴~阿巴~2 小时前
Linux安全基石:Shell运行原理与权限管理系统解读
linux·服务器
SH11HF3 小时前
小菜狗的云计算之旅,shell脚本语言的基本内容和用法
运维·网络·云计算·ssh
小高求学之路3 小时前
MinIO centos 7 离线(内网) 一键部署安装
python·centos·numpy
七灵微5 小时前
【后端】负载均衡
运维·负载均衡
令狐掌门5 小时前
linux VFS简介
linux