centos 7.2配置 FreeSwitch X-Lite

简介: Centos7 编译freeswitchfreeswitch版本 : 1.6操作系统基本是最小安装时间:2017-04/26温馨提示 : 如果想更快的编译成功可以先把所有的yum的软件安装完成(及所有的yum命令执行一下)步骤和问题解决1.

Centos7 编译freeswitch


  • freeswitch版本 : 1.6

  • 操作系统基本是最小安装

  • 时间:2017-04/26

温馨提示 : 如果想更快的编译成功可以先把所有的yum的软件安装完成(及所有的yum命令执行一下)


步骤和问题解决

  • 1.安装git

  • yum install Git

  • 2.获取源码

  • git clone https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch.git

     3.按照官方文档搭建环境

yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release11
  • 安装开发环境(上面步骤需要成功)

yum install -y git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel libxml2-devel libyuv-devel opus-devel libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel yasm-devel11

4.开始编译

  • 编译

./bootstrap.sh -j11
  • 注意:执行失败提示( autoconf not found)

yum install autoconf automake libtool11
  • 再次编译

./bootstrap.sh -j
./configure1212

5.解决configure中出现的错误

  • 1 . The C++ compiler does not work. Please (re)install the C++ compiler

yum install gcc-c++11
  • 2 . no usable zlib; please install zlib devel package or equivalent

yum install zlib-devel11
  • 3 . Library requirements (sqlite3 >= 3.6.20) not met;

yum install sqlite-devel11
  • 4 . Library requirements (libcurl >= 7.19) not met;

yum install curl-devel11
  • 5 . Library requirements (libpcre >= 7.8) not met;

yum install pcre-devel11
  • 6 . Library requirements (speex >= 1.2rc1 speexdsp >= 1.2rc1) not met;

yum install speex-devel11
  • 7 . You need to either install libldns-dev or disable mod_enum in modules.conf

yum install ldns-devel11
  • 8 . You need to either install libedit-dev (>= 2.11) or configure with –disable-core-libedit-support

yum install libedit-devel11
  • 9 . OpenSSL >= 1.0.1e and associated developement headers required

yum install openssl-devel11
  • 成功后的结果应该是下图所示

默认情况的configure结果

6 . 解决编译时的错误

  • 编译

make11
  • 6.1 Neither yasm nor nasm have been found.

yum install nasm -y11
  • 6.2 fatal error: lua.h: No such file or directory

yum install lua-devel11
  • 6.3 You must install libopus-dev to build mod_opus. Stop.

yum install opus-devel
./configure && make1212
  • 6.4 You must install libsndfile-dev to build mod_sndfile.

yum install libsndfile-devel
./configure && make1212
  • 编译成功结果

编译成功后的终端显示效果

7 安装到默认目录

  • 安装

make install11
  • 结果 
    安装后的提示 
    提示

  • 安装声音文件 
    这个是需要下载的,可以不用安装

make cd-moh-install && make cd-sounds-install


目录
相关文章
|
3月前
|
应用服务中间件 Linux 网络安全
centos7 下离线安装gcc g++ nginx,并配置nginx进行网络流转发
centos7 下离线安装gcc g++ nginx,并配置nginx进行网络流转发
104 0
|
4月前
|
Kubernetes Ubuntu 安全
Linux|科普扫盲帖|配置网络软件源---阿里云镜像仓库服务使用(centos,Ubuntu)
Linux|科普扫盲帖|配置网络软件源---阿里云镜像仓库服务使用(centos,Ubuntu)
493 0
|
10天前
|
Linux 虚拟化
VMware workstation 中centos7虚拟机在nat模式下怎么配置网卡,指定我想要的IP并且可以联网
https://blog.csdn.net/2302_78534730/article/details/132825156?spm=1001.2014.3001.5502
131 0
|
5月前
|
存储 关系型数据库 Linux
Linux之centos7安装配置及Linux常用命令
Linux之centos7安装配置及Linux常用命令
212 0
|
9天前
|
网络协议
centos8 网卡 Nmcli(是network的简写 Nmcli)配置网络
centos8 网卡 Nmcli(是network的简写 Nmcli)配置网络
11 0
|
4月前
|
Linux
centos之--目录权限配置
CentOS中,可以使用chmod命令来设置文件夹的权限
168 0
|
1月前
|
存储 监控 Linux
Flume【部署 02】Flume监控工具Ganglia的安装与配置(CentOS 7.5 在线安装系统监控工具Ganglia + 权限问题处理 + Flume接入监控配置 + 图例说明)
【2月更文挑战第17天】Flume【部署 02】Flume监控工具Ganglia的安装与配置(CentOS 7.5 在线安装系统监控工具Ganglia + 权限问题处理 + Flume接入监控配置 + 图例说明)
27 1
Flume【部署 02】Flume监控工具Ganglia的安装与配置(CentOS 7.5 在线安装系统监控工具Ganglia + 权限问题处理 + Flume接入监控配置 + 图例说明)
|
2月前
|
Ubuntu Linux 网络安全
|
3月前
|
负载均衡 算法 Linux
百度搜索:蓝易云【Centos7系统Haproxy安装配置教程】
现在,HAProxy已经成功安装和配置在您的CentOS 7系统上。它将监听您配置的端口,并根据负载均衡策略将请求转发到后端服务器。您可以根据需要自定义更多的配置,如SSL终止、ACL和更复杂的负载均衡算法。请确保HAProxy的配置符合您的需求,并在进行更改之前备份配置文件,以防止意外的错误。
41 2
|
3月前
|
Linux 网络安全
百度搜索:蓝易云【centos7通过配置hosts.allow和hosts.deny限制登陆教程】
从现在开始,根据您在 `hosts.allow`和 `hosts.deny`文件中配置的规则,特定的主机将被允许或拒绝登录到您的CentOS 7系统。请确保您谨慎地配置这些文件,以避免意外地限制访问。同时,建议备份这些文件以备不时之需。
44 1

热门文章

最新文章