FreeSwitch v1,Linux运维程序员必经的实践之路

本文详细介绍了Linux运维人员在安装FreeSWITCH v1.10.x过程中遇到的问题及其解决方法,包括sofia-sip、spandsp的编译安装,以及FreeSWITCH的编译配置和启动。内容涵盖从安装gcc编译器到处理各种依赖错误的附录,旨在提供一个完整的实践路径。
摘要由CSDN通过智能技术生成
  • FreeSWITCH

主程序目录:/app/rainbow/freeswitch/

录音文件:/app/rainbow/data/recordings/

应用程序目录:/app/rainbow/webapps/

四、安装流程简述

  • 安装gcc编译器

源码安装需要使用c、c++编译器,执行:yum install gcc gcc-c++,当前服务器已自带gcc8.2,执行:yum install gcc-c++

  • 安装sofia-sip和spandsp

由于FreeSwitch-1.10.x某个版本将sofia-sip和spandsp模块分离了,所以在安装freeswitch前需要单独编译安装这两个模块,否则会提示:

checking for spandsp >= 3.0… configure: error: no usable spandsp; please install spandsp3 devel package or equivalent

checking for sofia-sip-ua >= 1.xx.xx… configure: error: no usable sofia-sip; please install sofia-sip-ua devel package or equivalent

  • 安装FreeSWITCH

五、编译安装步骤

  • 安装包上传

(1)将freeswitch、sofia-sip、spandsp三个模块的源码包解压到/app/package/source/目录下,如下所示:

  • 安装sofia-sip模块

(1)进入目录:cd sofia-sip-1.13.8

(2)编译:./bootstrap.sh

如执行后提示**autoreconf:command not found,**见问题附录一处理后再继续。

(3)编译:./configure

(4)安装:make

如执行后提示**openssl/ssl.h:No such or directory,**见问题附录二处理后再继续。

(5)安装:make install

  • 安装spandsp模块

(1)进入目录:cd spandsp-master/

(2)编译:./bootstrap.sh

(3)编译:./configure

如执行后提示configure: error: “Cannot build without libtiff (does your system require a libtiff-devel package?)”,见问题附录三处理后再继续。

如执行后提示configure: error: “Cannot build without libtiff (does your system require a libjpeg-devel or libjpeg-turbo-devel package?)”,见问题附录四处理后再继续。

(4)安装:make

(5)安装:make install

  • 安装freeswitch模块

(1)在完成上述前置模块的安装后,执行如下命令重载库缓存配置和环境变量:

ldconfig

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

(1)进入目录:cd freeswitch-1.10.7/

(2)编译:./bootstrap.sh

(3)编译:./configure

如需指定安装目录和文件结构编译:

./configure --prefix=/app/rainbow/freeswitch --disable-fhs

如执行后提示configure: error: Library requirements (sqlite3 >= 3.6.20) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.,见问题附录五处理后再继续。

如执行后提示configure: error: Library requirements (libcurl >= 7.19) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

  • 14
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值