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.repo

curl -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.repo

yum 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
sed -i 's+gpgcheck=1+gpgcheck=0+g' /etc/yum.repos.d/okay.repo
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 patch \
	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,但不是特别确定,准备再来一遍。

  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值