在centos 6.5中編譯和安裝FreeSwitch

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. 其他錯誤等待後續補充……

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