Freeswitch environment construction

1. System image version:

CentOS-7-x86_64-DVD-1708.iso
graphical interface installation:
configure the network during installation, in English.
The current test is installed on vmware, and it can run, but the two channels are relatively stuck

2. Download, install and compile:

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

3. Update the gcc version:

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

4. Install 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

Five. Problems encountered:

1. The problem that
CentOS cannot obtain the IP from the bridged network in VMware 2. libpng not installed:
Insert picture description here
execute in libs under the root directory of freeswitch:

git clone https://freeswitch.org/stash/scm/sd/libpng.git
进入libpng
执行./configure && make && make install

The problem that libpng does not take effect after installation:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
execute the above command before executing configure when compiling freeswitch, PKG_CONFIG_PATH should be modified according to the installation path

Guess you like

Origin blog.csdn.net/weixin_44991625/article/details/107614850