当前位置: 首页 > news >正文

CentOS6.5 下编译 FreeSWITCH 1.2.23 版本

命题作文,慢慢来,一边做,一边记录。

老古董了,查资料很不容易,但朋友说不着急,这很好。

生命的意义在于折腾,不是吗?

先下载 CentOS6.5,

查了下资料,最后决定到这里下载:

https://archive.kernel.org/centos-vault/6.5/isos/x86_64/CentOS-6.5-x86_64-minimal.iso

最小安装。

下一步,VirtualBox 安装。

接着配置网络,编辑  /etc/sysconfig/network-scripts/ifcfg-eth0,内容为:

DEVICE=eth0
HWADDR=08:00:27:C0:C6:8E
TYPE=Ethernet
UUID=98f81e39-a346-4385-8493-532023783749
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp

ssh 费了点功夫,但最后还是搞定了,  `ssh -legacy root@192.168.31.200` 

下一步,安装 epel,下面几条命令搞定:

curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
sed -i 's|http://mirrors.aliyun.com/centos|https://mirrors.aliyun.com/centos-vault/centos|g' /etc/yum.repos.d/CentOS-Base.repocurl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo 
sed -i 's|http://mirrors.aliyun.com/epel|http://archives.fedoraproject.org/pub/archive/epel|gp' /etc/yum.repos.d/epel.repoyum install -y  epel-release

再下一步,安装 okay,okay 有很多好东西

yum install  -y pyliblzma
rpm -ivh http://repo.okay.com.mx/centos/6/x86_64/release/okay-release-1-3.el6.noarch.rpm
yum install -y --skip-broken speex-devel speexdsp-devel libshout-devel libmpg123-devel lame-devel libsndfile-devel

其实到了这一步就可以直接 `yum install freeswitch` 。

不过,我们还是按原计划继续。

安装 gcc 编译工具等:

yum install -y autoconf automake bison wget \openssl-devel \curl-devel \gdbm-devel \gcc-c++ \gnutls-devel \libcurl-devel \libjpeg-devel \libogg-devel \libtiff-devel \libtool \libuuid-devel \libxml2-devel \ncurses-devel \opus-devel \pcre-devel \pkgconfig \portaudio-devel \postgresql-devel \python3-devel \sqlite-devel \unixODBC-devel \zlib-devel \yasm \nasm \libedit-devel \libatomic

下载源码并解压:

cd /usr/src
wget https://files.freeswitch.org/releases/freeswitch/freeswitch-1.2.23.tar.gz
tar zxvf freeswitch-1.2.23.tar.gz

编译:

cd /usr/src/freeswitch-1.2.23
./rebootstrap.sh
autoreconf --force --install
# sed -i 's+#formats/mod_shout+formats/mod_shout+g' modules.conf
./configure
make && make install
make sounds-install && make moh-install

mod_shout 单独编译:

sed -i 's+#formats/mod_shout+formats/mod_shout+g' modules.conf
./configure
cd /usr/src/freeswitch-1.2.23/src/mod/formats/mod_shout
make && make install

创建二个软连接,方便使用:

ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin
ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin

最后启动,貌似 OK,但不是特别确定,准备再来一遍。

http://www.lryc.cn/news/355397.html

相关文章:

  • 2024年03月 Python(三级)真题解析#中国电子学会#全国青少年软件编程等级考试
  • Redis篇 数据的编码方式和单线程模型
  • (delphi11最新学习资料) Object Pascal 学习笔记---第13章第4节 (内存管理和接口)
  • 【记录贴】docker镜像格式报错
  • 设计模式 19 模板模式 Template Pattern
  • PHP如何实现实时计算使用者消耗服务器资源费用?
  • 在C++中自定义命名空间,在命名空间中定义string变量,同时定义一个函数实现单词逆置
  • 【leetcode 141】环形链表——快慢指针(龟兔赛跑)
  • 容器(Container)的详细介绍
  • Python 网格变换之平移、旋转、缩放、变换矩阵
  • 推荐10款优秀的组件库(一)
  • freertos的信号量和互斥锁学习笔记
  • C++基础——vector的详解与运用
  • const指针,星号判断方法
  • 移动摄像头专网需要解vlan,如何解决
  • 5.27周报
  • C-数据结构-树状存储的基本实现
  • 指纹识别经典图书、开源算法库、开源数据库
  • 嵌入式之译码器
  • 分成sum接近的2个集合,返回相对小的sum
  • SpringBoot前置知识01-SPI接口
  • 数学建模--LaTeX的基本使用
  • 授权调用: 介绍 Transformers 智能体 2.0
  • 流媒体内网穿透/组网/视频协议转换EasyNTS上云网关如何更改密码?
  • HTML5的标签(文本链接、图片路径详解)
  • React Native 之 Linking(链接)(十五)
  • Java实现图书系统
  • Git提交和配置命令
  • 已解决java.lang.ExceptionInInitializerError: 初始化程序中的异常错误的正确解决方法,亲测有效!!!
  • 报表显示中,是否具备条件格式功能设计?