1.安装 gcc++ 环境
yum install -y subversion autoconf automake libtool gcc-c++
yum install -y ncurses-devel make libtiff-devel libjpeg-devel
2.安装git
确保已安装了依赖的包
yum install curl
|
yum install curl-devel
|
yum install zlib-devel
|
yum install openssl-devel
|
yum install perl
|
yum install cpio
|
yum install expat-devel
|
yum install gettext-devel |
下载最新的git包
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
|
tar xzvf git-latest.tar.gz
|
cd git-2011-11-30 #你的目录可能不是这个
|
autoconf
|
./configure
|
make
|
sudo make install |
检查下安装的版本,大功告成
3. GIT freeSwitch源代码
1). git clone git://git.freeswitch.org/freeswitch.git
2).cd freeswitch
3). ./bootstrap.sh
4)./configure
5).make install
4.安装声音文件
1. make sounds-install
2. make moh-install
安装高质量的声音文件
1. make cd-sounds-install
2. make cd-moh-install
5.添加命令到搜索里头,可以不用路径直接执行
1)ln -sf /usr/local/freeswitch/bin/freeswitch/usr/bin/
2)ln -sf /usr/local/freeswitch/bin/fs_cli/usr/bin