创意电子

标题: CentOS8源码编译FreeSwitch1.10.6 [打印本页]

作者: 立行7782081    时间: 2021-9-8 23:30
标题: CentOS8源码编译FreeSwitch1.10.6
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-devel5、有些依赖项,yum安装找不到,利用dnf命令安装必要的依赖项:
dnf --enablerepo=powertools install speex-devel speexdsp-devel ldns-devel opus-devel libpq-devel libsndfile-devel libedit-devel yasm6、安装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-devel7、安装lua 5.2版本,最新的5.2版本是5.2.4,下载源码tarball,解压,进入src目次下修改Makefile文件,CFLAGS增长设置-fPIC,然后切换到lua源码根目次编译命令make linux, 安装命令make install

                               
登录/注册后可看大图
编辑lua的src文件夹下Makefile文件
8、编辑modules.conf,禁用mod_signalwire模块
9、办理找不到spandsp的问题,官网可以找到这个问题的答案,实行命令
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig10、实行./configure,然后编译make,然后安装make install




欢迎光临 创意电子 (https://www.wxcydz.cc/) Powered by Discuz! X3.4