盛年不重来,一日难再晨,及时当勉励,岁月不待人。这篇文章主要讲述LINUX下载编译FreeSwitch相关的知识,希望能为你提供帮助。
官方参考链接:
??https://freeswitch.org/confluence/display/FREESWITCH/Linux+Quick+Install+Guide#LinuxQuickInstallGuide-CompiletheSource??
- 必须
- ??GIT??? or ??WGET??
- ??AUTOCONF??
- ??AUTOMAKE??
- ??GCC-C++??
- ??LIBJPEG-DEVEL?? Used by mod_spandsp for basic codecs
- ??LIBTOOL??
- ??MAKE??
- ??NCURSES-DEVEL??
- 可选
- ??curl-devel??? for ??mod_xml_curl??
- ??expat-devel??
- ??libtiff?? for fax support
- ??libx11-devel??? for ??Mod_skypopen??
- ??ODBC or UNIX-ODBC and ODBC-devel??? see the ??ODBC page?? for information
- ??OpenSSL??? (libssl-dev / openssl-devel) for ??SIP SSL & TLS??? and ??Dingaling??
- ??python-devel??? for the ??python interface??
- ??ZLIB and ZLIB-devel??
-
??libzrtp??? ZRTP encryption support, see the FreeSWITCH? ??ZRTP?? page
- 下载编译相关库
zlib-1.2.11
yasm-1.3.0
nasm-2.14.02
tiff-4.1.0
jpeg-9d
png
openssl-OpenSSL_1_1_1g
libssh2-1.9.0
pcre-8.44
sqlite-autoconf-3310100
curl-7.70.0
ldns-1.7.1
libuuid-1.0.3
libvpx-1.8.2
speex-1.2.0
speexdsp-1.2.0
x264-snapshot-20180101-2245-stable
openh264-master
libav-12.3
lua-5.3.5
opus-1.3.1
ncurses-6.1
readline-7.0
postgresql-12.3
libsndfile-1.0.28
吾博文中都提供了相应的下载及编译办法。有的只能编译到系统目录下。
【LINUX下载编译FreeSwitch】编译完成之后,在PATH中加入其bin目录。
- 下载代码
# git clone https://github.com/signalwire/freeswitch
# 建议下载发布版本的代码包
# https://github.com/signalwire/freeswitch/releases
./bootstrap.sh
git获得最新代码,如果编译不过,下载release的代码包,解压后编译。
- 编译
BUILD_LIBS=$HOME/build_libs
export PKG_CONFIG_PATH=$BUILD_LIBS/lib/pkgconfig
./configure \\
--prefix=$BUILD_LIBS \\
--disable-werror \\
--disable-core-libedit-support \\
--disable-signalwire \\
CFLAGS="-I$BUILD_LIBS/include -Wno-error=unused-value" \\
LDFLAGS=-L$BUILD_LIBS/lib
make
# this is the only way for meeting
make all install cd-sounds-install cd-moh-install
推荐阅读
- Harbor企业级镜像仓库安装部署
- Docker-compose搭建nginx负载均衡
- LINUX下载编译ldns
- jenkins安装与配置
- TCP长连接实践与挑战
- 搏动"城市之肾",可视化突破海绵城市发展困境
- 搭建npm的私有verdaccio 仓库
- shell脚本中ssh命令远程调用java启动脚本无法启动java进程
- 运维面试问道 网站出现502 如何排查