MAC freeswitch 安装教程
本文由初入行新人攥写,网上基本没有关于mac os的安装教程,所以为了以后大家能够查阅,特写如下文。
- 准备工作
- git 安装freeswitch源码库
- 安装编译需要的lib库
- 问题剖析
- 编译
- 安装声音文件
准备工作
如果你想在mac上面安装freeswitch,则需要先下载安装xcode,然后安装command LIne Tools
具体的安装方法:
在终端输入命令
在终端中输入以下命令:xcode-select --install ,按回车。
如图:
最后验证是否安装成功:
继续在终端中打入:xcode-select –install .如果出现以下情况,表示安装成功。
git 安装freeswitch 库
git clone https://stash.freeswitch.org/scm/fs/freeswitch.git
安装编译需要的lib库
brew install autoconf
brew install automake
brew install libtool
brew install pkg-config
brew install speexdsp
brew install speex
brew install libldns-dev
brew install OpenSSL
brew install pcre
brew install pkgconfig sqlite3
brew intall lua
brew install opus
brew install libsndfile
期间会遇到一个问题:
configure: error: You need to either install libldns-dev or disable mod_enum in modules.conf
解决方案:
去modules.conf这个文件,把mod_enum用#注释掉。
安装完成:
编译
./bootstrap.sh
./configure
Make install
可以简单用做:
make clean && ./configure && make install
安装声音文件
make clean && ./configure && make install
安装高清声音文件:例如16KHZ
make cd-sounds-install
make cd-moh-install