在centos 6.5中编译和安装FreeSwitch

来源:互联网 发布:淘宝拍片摄影棚租赁 编辑:程序博客网 时间:2024/05/21 16:06

1. 安装依赖包

yum install autoconf automake libtool gcc-c++ ncurses-devel make zlib-devel libjpeg-devel lua lua-devel opus-devel libsndfile-devel openssl-devel e2fsprogs-devel curl-devel pcre-devel speex-devel sqlite-devel ldns-devel libedit-devel libtiff-devel

2. 缺少yasm或nasm

  • 从GitHub上下载源码
  • ./autogen.sh
  • ./configure
  • sudo make install

3. 错误:找不到spandsp.h

  • make spandsp-reconf

4. 错误: #pragma GCC diagnostic not allowed inside functions

  • gcc版本太低,需要升级更高版本,实验证明4.8.5可以使用
  • 在centos中安装gcc-4.8.5方法,请参考另一篇文章

5. 错误:Makefile:898: * You must install libopus-dev to build mod_opus.

  • 在确认已经安装了 opus和opus-devel情况下,执行以下操作
  • 将文件freeswitch.git/src/mod/codecs/mod_opus/Makefile 的895和896行注释掉,如下所示
  • #install:error
  • #all:error

6. 其他错误等待后续补充……

原创粉丝点击