switch安装linux教程,CentOS 7.2安装配置 FreeSwitch X-Lite

CentOS 7.2 编译FreeSwitch

FreeSwitch版本 : 1.6

操作系统基本是最小安装

时间:2017-04/26

温馨提示 :如果想更快的编译成功可以先把所有的yum的软件安装完成(及所有的yum命令执行一下)

步骤和问题解决

1.安装git

yum install Git

2.获取源码

git clone https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch.git

3.按照官方文档搭建环境

yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release11

安装开发环境(上面步骤需要成功)

yum install -y git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel libxml2-devel libyuv-devel opus-devel libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel yasm-devel11

4.开始编译

编译

./bootstrap.sh -j11

注意:执行失败提示( autoconf not found)

yum install autoconf automake libtool11

再次编译

./bootstrap.sh -j ./configure1212

5.解决configure中出现的错误

1 . The C++ compiler does not work. Please (re)install the C++ compiler

yum install gcc-c++11

2 . no usable zlib; please install zlib devel package or equivalent

yum install zlib-devel11

3 . Library requirements (sqlite3 >= 3.6.20) not met;

yum install sqlite-devel11

4 . Library requirements (libcurl >= 7.19) not met;

yum install curl-devel11

5 . Library requirements (libpcre >= 7.8) not met;

yum install pcre-devel11

6 . Library requirements (speex >= 1.2rc1 speexdsp >= 1.2rc1) not met;

yum install speex-devel11

7 . You need to either install libldns-dev or disable mod_enum in modules.conf

yum install ldns-devel11

8 . You need to either install libedit-dev (>= 2.11) or configure with –disable-core-libedit-support

yum install libedit-devel11

9 . OpenSSL >= 1.0.1e and associated developement headers required

yum install openssl-devel11

成功后的结果应该是下图所示

55830b37672405481a82fdbd3031c00b.png

6 . 解决编译时的错误

编译

make11

6.1 Neither yasm nor nasm have been found.

yum install nasm -y11

6.2 fatal error: lua.h: No such file or directory

yum install lua-devel11

6.3 You must install libopus-dev to build mod_opus. Stop.

yum install opus-devel ./configure && make1212

6.4 You must install libsndfile-dev to build mod_sndfile.

yum install libsndfile-devel ./configure && make1212

编译成功结果

363fffcf5245b3110e251d507a325ca8.png

7 安装到默认目录

安装

make install11

结果

3316f898e497df97df4bacbeedefd784.png 

ee08952cbac7d65b9747023f22e1e5c2.png

安装声音文件

这个是需要下载的,可以不用安装

make cd-moh-install && make cd-sounds-install

安装SIP软电话X-lite

ae4a64bbbf0e4df345c73aed83813ba9.png

注意:需要联网安装

第二步:

3c775f2b7030b0c475645da07d503379.png

最后测试:

8b87945eeb57847177113696b485caa4.png

0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值