CentOS 7 编译安装FreeSwitch —— 筑梦之路
2023-09-14 09:16:00 时间
#安装依赖包
yum install epel-release -y
yum install -y git gcc-c++ wget alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel db-devel e2fsprogs-devel flite-devel g722_1-devel 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 libtiff-devel libtheora-devel libtool 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 python26-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel libuuid-devel which yasm zlib-devel
#下载源码包
http://files.freeswitch.org/freeswitch-releases/
我这里选择当前最新版
wget https://files.freeswitch.org/freeswitch-releases/freeswitch-1.10.7.-release.tar.gz
#解压
tar -zxf freeswitch-1.10.7.-release.tar.gz
#切换目录
cd freeswitch-1.10.7.-release
./configure
-----------------------------------------------------------------
#解决依赖包问题
yum install http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm
yum install spandsp-devel -y
#没用yum install sofia-sipua -y
#没用 版本不符合wget https://sourceforge.net/projects/sofia-sip/files/sofia-sip/1.12.11/sofia-sip-1.12.11.tar.gz --no-check-certificate
tar zxf sofia-sip-1.12.11.tar.gz && cd sofia-sip-1.12.11 && ./configure --prefix=/usr CFLAGS=-fno-aggressive-loop-optimizations && make && make install
#没用
https://github.com/freeswitch/sofia-sip/releases/tag/v1.13.7
sh> sh autogen.sh (if building from darcs)
sh> ./configure
sh> make
sh> make install
#有用
yum install sofia-sip-devel -y
---------------------------------------------------------------------
解决完成不满足的依赖包继续编译安装
make
-------------------------------
处理报错 You must install libavformat-dev and libswscale-dev to build mod_av。 停止
wget https://freeswitch.org/stash/rest/api/latest/projects/SD/repos/libav/archive?format=zip --no-check-certificate
cd libav
./configure #CFLAGS="-fPIC" ./configure --enable-pic --enable-shared
make # make CXXFLAGS="-fPIC"
make install
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum install ffmpeg ffmpeg-devel -y
未完待续
相关文章
- Centos 安装图形界面与远程使用「建议收藏」
- Centos安装MySQL5.7
- CentOS安装RabbitMQ
- CentOS下编译安装MySQL 5.6.21详解程序员
- Centos 6.9 安装xtrabackup-2.4.8 通用包,yum安装,全量备份,增量备份详解数据库
- CentOS 6.4安装pip,CentOS安装python包管理安装工具pip的方法详解编程语言
- 查看CentOS版本:Linux解决方案(linux查看centos版本)
- CentOS安装Oracle数据库的步骤(centos安装oracle)
- CentOS下安装MySQL步骤指南(centos下安装mysql)
- CentOS 7 怎样安装 OwnCloud 7 私有云
- 如何在CentOS 8上安装Plex Media Server
- 如何在CentOS 8上使用SSL/TLS安装vsftpd FTP服务器
- 如何在CentOS 7上安装Oracle Database 12c
- CentOS 与 Ubuntu 有什么不同?
- CentOS下编译安装LNMP(附带软件包)
- 25个常见的Linux发行版:Ubuntu、Fedora、Mint、Debian、CentOS、Arch、OpenSUSE、RedHat、Kali、Slackware、Gentoo、Mageia、Zorin、Manjaro、PCLinuxOS、Knoppix、Deepin、LXLE、TinyCore、ParrotSec、GeckoLinux、SparkyLinux、Bodhi Linux、Trisquel、GhostBSD。(常见的linux发行版本)
- Centos编译安装 LAMP (apache-2.4.7 + mysql-5.5.35 + php 5.4.8)
- RedHat和CentOS下防DDOS攻击方法
- CentOS系统上安装MySQL的正确姿势使用Yum命令一键安装(mysql yum安?)
- CentOS服务器下安装Webmin管理系统的步骤
- Linux+php+apache+oracle环境搭建之CentOS下源码编译安装PHP