Centos7源码安装FreeSwitch1.8.1

niaiai 2019-12-29 PM 604℃ 0条

依赖要求

工具版本
用户root
操作系统CentOS7
FreeSwitch1.8.1
安装方式源码安装

安装步骤

所有本地文件在参考文档里面有下载,也可以选择网络安装,取消网络安装的注释,并注释掉本地安装.

#! /bin/bash

# freeswitch install.sh

# 安装FreeSwitch仓库
# 方式1 网络安装
# yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release
# 方式2 本地安装
yum install -y freeswitch-release-1-6.noarch.rpm epel-release

# 更换清华源 makecache
cat CentOS-Base.repo > /etc/yum.repos.d/CentOS-Base.repo
yum makecache

# Centos-安装FreeSwitch依赖
yum install -y alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel e2fsprogs-devel 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 libtiff-devel libtool libuuid-devel libvorbis-devel libxml2-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 python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel wget which yasm zlib-devel

# 解压FreeSwitch到/usr/local/src/目录下
# 网络下载代码包
# wget https://github.com/signalwire/freeswitch/archive/v1.8.1.tar.gz
tar jxf freeswitch-1.8.1.tar.bz2 -C /usr/local/src/

# 切换目录并安装
cd /usr/local/src/freeswitch-1.8.1
./configure
make
make install

# 安装语言包(可以选)
# make sounds-install
# make moh-install

# 安装成功之后 创建连接文件
ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin/
ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin/

# 清除yum缓存
yum clean all

参考文档

FreeSwitch官方文档
FreeSwitch代码仓库已迁移至GitHub
CentOS7更换清华源
源码资料 fs-install-by-source.zip(40.62 M) 访问密码: 6gwp

非特殊说明,本博所有文章均为博主原创。

评论啦~