Ubuntu 16.04.6 LTS 安裝FreeSwitch1.10.2版本

安裝Ubuntu Server版(省略)

第一步

#>apt-get -y install build-essential automake autoconf git-core wget libtool

第二步

#>apt-get -y install libncurses5-dev libtiff-dev libjpeg-dev zlib1g-dev libssl-dev libsqlite3-dev

第三步

#>apt-get -y install libpcre3-dev libspeexdsp-dev libspeex-dev libcurl4-openssl-dev libopus-dev

第四步

#>git clone https://github.com/signalwire/freeswitch.git

#>cd freeswitch

#>git checkout -b v 1.10.2

#>./bootstrap.sh

如果出下如下錯誤

bootstrap: libtool not found.

           You need libtool version 1.5.14 or newer to build FreeSWITCH from source.

在ubuntu只有libtoolize,修改bootstrap.sh,

libtool=${LIBTOOL:-`${LIBDIR}/apr/build/PrintPath glibtool libtool libtool22 libtool15 libtool14 libtoolize`}

#>./configure

#>make install

第五步

#>apt-get install pkg-config

#>apt-get install libldns-dev

#>apt-get install libedit-dev

#>cd /opt/

#>git clone https://github.com/yasm/yasm.git && cd yasm && ./autogen.sh && make && sudo make install

#>apt-get install libsndfile-dev

#>apt-get install yasm libvpx. libx264. libx264-dev

#>git clone https://freeswitch.org/stash/scm/sd/libav.git

#>cd libav

#>./configure --enable-shared --enable-libx264 --enable-gpl

#>make

#>make install

#>apt-get install libavformat-dev

第六步 如果出現lua.h: No such file or directory

#>apt-get install lua5.3 liblua5.3-dev

#>cp /usr/include/lua5.3/*.h src/mod/languages/mod_lua/

將so文件做個鏈接

#>sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.3.so /usr/lib/x86_64-linux-gnu/liblua.so

第七步 如果出現需要安裝libpq-dev說明,

#>apt-get install libpq-dev

下載cmake-3.16.4.tar.gz包

#>tar -xzvf cmake-3.16.4.tar.gz

#>cd cmake-3.16.4

#>./configure

#>make && make install

#>cp bin/cmake /usr/bin/

#>cmake --version

下載並編譯libuuid源碼
https://jaist.dl.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz

 

#>cd /opt

#>git clone https://github.com/signalwire/libks.git

#>apt-get install cmake

#>cmake

#>make

#>make install

第八步:最後再配置和編譯,最後成功

#>./configure

#>make install

安裝成功後,執行#>./freeswitch,查看佔用了5060端口,即可。

參考文章:

FreeSWITCH折騰筆記

https://blog.51cto.com/908405 

-bash: /usr/bin/cmake: No such file or directory錯誤

https://blog.csdn.net/kongkongqixi/article/details/88657508

-bash: /usr/bin/cmake: No such file or directory錯誤
https://blog.csdn.net/kongkongqixi/article/details/88657508 

CMake 3.8 or higher is required
https://blog.csdn.net/qq_23958451/article/details/100526699

Centos7 下安裝freeswitch 1.8.5及遇到的問題
https://www.cnblogs.com/Lewis302/p/10466936.html

ubuntu16 下安裝freeswitch 1.8.3
https://msd.misuland.com/pd/3255817928875971370

Ubuntu下freeSwitch安裝指導
https://www.jianshu.com/p/3400fdd29fb5

CMake和libuuid下載地址
https://cmake.org/download/
https://sourceforge.net/projects/libuuid/

x-lite Mac 安裝
1,下載網址,點擊 “Download X-Lite for Mac”下載
http://www.counterpath.com/x-lite-download/

Ubuntu16.04 源碼編譯安裝freeswitch
https://www.dazhuanlan.com/2019/09/27/5d8e16e5e2956/

ubuntu freeswitch 安裝
https://blog.csdn.net/loverson/article/details/85158840

發佈了109 篇原創文章 · 獲贊 19 · 訪問量 15萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章