一.系统镜像版本:
CentOS-7-x86_64-DVD-1708.iso
图形化界面安装:
安装时配置好网络,英文。
目前测试是安装在vmware上,可以跑起来,但是两路就比较卡
二.下载安装及编译:
yum install -y https://files.freeswitch.org/repo/yum/centos-release/freeswitch-release-repo-0-1.noarch.rpm epel-release
yum-builddep -y freeswitch
yum install -y yum-plugin-ovl centos-release-scl rpmdevtools yum-utils git
yum install -y devtoolset-7-gcc*
scl enable devtoolset-7 'bash'
cd /usr/local/src
git clone -b v1.10 https://github.com/signalwire/freeswitch.git freeswitch
cd /usr/local/src/freeswitch
./bootstrap.sh -j
./configure --enable-portable-binary \
--prefix=/usr --localstatedir=/var --sysconfdir=/etc \
--with-gnu-ld --with-python --with-erlang --with-openssl \
--enable-core-odbc-support --enable-zrtp
make
make -j install
make -j cd-sounds-install
make -j cd-moh-install
三.更新gcc版本:
You need upgrade your GCC version. You can do so by running these commands:
yum install centos-release-scl -y
yum install devtoolset-7 -y
scl enable devtoolset-7 bash
四.安装ffmpeg-devel:
升级系统:
sudo yum install epel-release -y
安装Nux Dextop Yum 源
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
安装FFmpeg 和 FFmpeg开发包
sudo yum install ffmpeg ffmpeg-devel -y
五.遇到的问题:
1.CentOS在VMware中桥接网络无法获取IP的问题
2.libpng not installed:
在freeswitch根目录下的libs执行:
git clone https://freeswitch.org/stash/scm/sd/libpng.git
进入libpng
执行./configure && make && make install
libpng安装后不生效的问题:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
在freeswitch编译时执行configure之前执行一下上面的命令, PKG_CONFIG_PATH要根据安装路径修改