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端口,即可。

第九步,安装X-Lite_5.8.3_102651.exe

https://download.csdn.net/download/penker_zhao/12177679 这里可以下载

参考文章:

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/

Ubuntu16.04 源码编译安装freeswitch
https://www.dazhuanlan.com/2019/09/27/5d8e16e5e2956/

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

你可能感兴趣的:(FreeSwitch)