编程开源技术交流,分享技术与知识

网站首页 > 开源技术 正文

CentOS8源码编译FreeSwitch1.10.6

wxchong 2024-07-21 07:28:25 开源技术 30 ℃ 0 评论

1、安装spandsp git地址 https://github.com/freeswitch/spandsp.git,spandsp依赖于libtiff-devel libjpeg-devel

2、安装sofia-sip git地址 https://github.com/freeswitch/sofia-sip.git,sofia-sip依赖于openssl-devel

3、下载freeswitch源码,直接克隆github上的源码在执行bootstrap.sh时报错,所以直接下载TarBall源码,不需要执行bootstrap.sh,TarBall源码链接https://files.freeswitch.org/releases/freeswitch/freeswitch-1.10.6.-release.tar.gz

4、yum命令安装必要的依赖项sqlite-devel,libcurl-devel,pcre-devel,readline-devel,其中readline-devel是lua5.2需要依赖的库,安装命令

yum install sqlite-devel libcurl-devel pcre-devel readline-devel

5、有些依赖项,yum安装找不到,使用dnf命令安装必要的依赖项:

dnf --enablerepo=powertools install speex-devel speexdsp-devel ldns-devel opus-devel libpq-devel libsndfile-devel libedit-devel yasm

6、安装ffmpeg-devel,

(1)添加RPMfusion仓库

yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm

(2)安装SDL

yum install http://rpmfind.net/linux/epel/7/x86_64/Packages/s/SDL2-2.0.14-2.el7.x86_64.rpm

(3)安装

yum install ffmpeg-devel

7、安装lua 5.2版本,最新的5.2版本是5.2.4,下载源码tarball,解压,进入src目录下修改Makefile文件,CFLAGS增加配置-fPIC,然后切换到lua源码根目录编译命令make linux, 安装命令make install

8、编辑modules.conf,禁用mod_signalwire模块

9、解决找不到spandsp的问题,官网可以找到这个问题的答案,执行命令

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

10、执行./configure,然后编译make,然后安装make install

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表