我是靠谱客的博主 温婉犀牛,最近开发中收集的这篇文章主要介绍CentOS 7 安装FreeSwitch 1.8.5 准备工作FreeSwitch编译源码安装:编译安装mod_bcg729,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
这两天因为需要,在CentOS上安装FS V1.8.5,期间碰到些问题,记录下安装过程。
操作系统:CentOS 7 64位(本文所述方法不适用于32位的安装)
准备工作
依赖包安装
yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release
yum install -y git alsa-lib-devel autoconf automake bison broadvoice-devel bzip2
curl-devel db4-devel db-devel e2fsprogs-devel erlang flite-devel g722_1-devel gcc-c++
gdbm-devel gnutls-devel ilbc2-devel ldns-devel libcodec2-devel libcurl-devel
libedit-devel libidn-devel libjpeg-devel libmemcached-devel libogg-devel
libsilk-devel libsndfile-devel libtheora-devel libtool libuuid-devel
libvorbis-devel libX11-devel libxml2-devel libyuv-devel lua-devel lzo-devel
mongo-c-driver-devel ncurses-devel net-snmp-devel openssl-devel opus-devel pcre-devel
perl perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python26-devel
python-devel rpm-build soundtouch-devel speex-devel sqlite-devel unbound-devel
unixODBC-devel wget which yasm zlib-devel libtiff-devel
升级cmake
如果系统已经安装cmake首先卸载系统的低版本cmake
yum remove cmake
cd /usr/local/src
wget https://cmake.org/files/v3.14/cmake-3.14.0.tar.gz
tar vzxf cmake-3.14.0.tar.gz
cd cmake-3.14.0
./configure
make
make install
安装libks
cd /usr/local/src
yum install libatomic
git clone https://github.com/signalwire/libks.git
cd libks
cmake .
make
make install
ln -sf /usr/lib/pkgconfig/libks.pc /usr/lib64/pkgconfig/libks.pc
安装signalwire-c
cd /usr/local/src
git clone https://github.com/signalwire/signalwire-c.git
cd signalwire-c/
cmake .
make
make install
ln -sf
/usr/local/lib/pkgconfig/signalwire_client.pc
/usr/lib64/pkgconfig/signalwire_client.pc
FreeSwitch编译源码安装:
cd /usr/local/src/
wget http://files.freeswitch.org/releases/freeswitch/freeswitch-1.8.5.tar.gz
tar vzxf freeswitch-1.8.5.tar.gz
cd freeswitch-1.8.5
./configure -C --enable-portable-binary
--prefix=/usr/local/freeswitch
--with-gnu-ld --with-python --with-erlang --with-openssl
--enable-core-odbc-support --enable-zrtp
--enable-core-pgsql-support
--enable-static-v8 --disable-parallel-build-v8
make
make -j install
make -j cd-sounds-install
make -j cd-moh-install
ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin/
ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin/
注:--prefix=/usr/local/freeswitch指向安装目录,如果有目录规划,可以添加参数 --localstatedir=/var --sysconfdir=/etc
编译安装mod_bcg729
cd /usr/local/src/
git clone https://github.com/xadhoom/mod_bcg729
cd mod_bcg729/
编辑Makefile,修改FS_INCLUDES, FS_MODULES变量,指向FreeSwitch的安装目录:
make
make install
至此,整个过程安装完毕。
最后
以上就是温婉犀牛为你收集整理的CentOS 7 安装FreeSwitch 1.8.5 准备工作FreeSwitch编译源码安装:编译安装mod_bcg729的全部内容,希望文章能够帮你解决CentOS 7 安装FreeSwitch 1.8.5 准备工作FreeSwitch编译源码安装:编译安装mod_bcg729所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复