centos 7.2配置 FreeSwitch X-Lite

Centos7 编译freeswitch


  • freeswitch版本 : 1.6

  • 操作系统基本是最小安装

  • 时间:2017-04/26

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


步骤和问题解决

  • 1.安装git

  • yum installGit

  • 2.获取源码

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

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

yuminstall-yhttp://files.freeswitch.org/freeswitch-release-1-6.noarch.rpmepel-release11
  • 安装开发环境(上面步骤需要成功)

yuminstall-ygitgcc-c++autoconfautomakelibtoolwgetpythonncurses-develzlib-devellibjpeg-developenssl-devele2fsprogs-develsqlite-devellibcurl-develpcre-develspeex-develldns-devellibedit-devellibxml2-devellibyuv-developus-devellibvpx-devellibvpx2*libdb4*libidn-develunbound-devellibuuid-devellua-devellibsndfile-develyasm-devel11

4.开始编译

  • 编译

./bootstrap.sh-j11
  • 注意:执行失败提示( autoconf not found)

yuminstallautoconfautomakelibtool11
  • 再次编译

./bootstrap.sh-j
./configure1212

5.解决configure中出现的错误

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

yuminstallgcc-c++11
  • 2 . no usable zlib; please install zlib devel package or equivalent

yuminstallzlib-devel11
  • 3 . Library requirements (sqlite3 >= 3.6.20) not met;

yuminstallsqlite-devel11
  • 4 . Library requirements (libcurl >= 7.19) not met;

yuminstallcurl-devel11
  • 5 . Library requirements (libpcre >= 7.8) not met;

yuminstallpcre-devel11
  • 6 . Library requirements (speex >= 1.2rc1 speexdsp >= 1.2rc1) not met;

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

yuminstallldns-devel11
  • 8 . You need to either install libedit-dev (>= 2.11) or configure with �Cdisable-core-libedit-support

yuminstalllibedit-devel11
  • 9 . OpenSSL >= 1.0.1e and associated developement headers required

yuminstallopenssl-devel11
  • 成功后的结果应该是下图所示

默认情况的configure结果

6 . 解决编译时的错误

  • 编译

make11
  • 6.1 Neither yasm nor nasm have been found.

yuminstallnasm-y11
  • 6.2 fatal error: lua.h: No such file or directory

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

yuminstallopus-devel
./configure&&make1212
  • 6.4 You must install libsndfile-dev to build mod_sndfile.

yuminstalllibsndfile-devel
./configure&&make1212
  • 编译成功结果

编译成功后的终端显示效果

7 安装到默认目录

  • 安装

makeinstall11
  • 结果

    安装后的提示


    提示

  • 安装声音文件
    这个是需要下载的,可以不用安装

makecd-moh-install&&makecd-sounds-install

相关文章

#使用军哥的lnmp配置虚拟主机,需要注意的是要配置hosts文件(...
一、配置编译环境 yum update && yum upgra...
一、下载repo文件 二、备份并替换系统的repo文件 三、执行yu...
LAMP -- Linux Apache MySQL PHP 在CentOS安装的顺序,我一般...
一、下载nginx安装包,官网下载中心http://nginx.org/downlo...
1.下载composer curl -sS https://getcomposer.org/installe...