MAC freeswitch 安装教程

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值