freeswitch初次安装

近日,闲来无事,想了解下freeswitch的功能和代码,于是下载源码。

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

1、VS2015编译

发现有VS2015的工程,耳闻freeswitch工程巨大,但用VS2015读代码还是不错的选择,于是果断下载VS2015,打开工程,居然有208个项目,赶紧编译,可惜编译几次,每次都停在某一个项目上,无法取消,很遗憾,没有编译成功,太耗时,没有继续深究下去,以后有时间再琢磨一下。

2、CentOS下编译

没办法,转战CentOS,虚拟机已经安装好了6.5 64位系统,重新git最新版

./bootstrap.sh

./configure 

make 

make时出错,提示either yasm nor nasm have been found. See the prerequisites section in the README for more info.


Configuration failed. This could reflect a misconfiguration of your
toolchains, improper options selected, or another problem. If you
don't see any useful error messages above, the next step is to look
at the configure error log file (config.log) to determine what
configure was trying to do when it died.


3、编译V1.4版本

     据说V1.4是目前比较稳定版本,于是:git clone -b v1.4 https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch14.

继续

./bootstrap.sh

./configure --prefix=/usr/local/freeswitch14

make 

出现:

you may getting an error:
“You must install libldns-dev to build mod_enum.  Stop.”

提示需要安装libldns-dev,当然也可以关闭mod_enum模块,有点轻微的强迫症,继续

yum install libldns-dev

No package libldns-dev available

Error: Nothing to do

网上查找解决方法:

先安装EPEL

yum install -y  epel-release
再安装

yum install ldns-devel libidn-devel unbound-devel
一切顺利

接着make install

找到/usr/local/freeswith14/bin/

执行freeswitch,运行成功了。

先感受下freeswitch,有值得记录的再贴出来。


    



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章