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,有值得記錄的再貼出來。


    



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