1. Centos 7編譯FreeSWITCH1.8:
  2. 寧衛通信
  3. 新聞動態
  4. 寧衛新聞
  5. Centos 7編譯FreeSWITCH1.8

Centos 7編譯FreeSWITCH1.8

yum install yum-utils

yum install -y https://files.freeswitch.org/repo/yum/centos-release/freeswitch-release-repo-0-1.noarch.rpm epel-release

yum-builddep -y freeswitch

yum install -y yum-plugin-ovl centos-release-scl rpmdevtools yum-utils git

yum install -y devtoolset-4-gcc*
 
scl enable devtoolset-4 'bash'
 
cd /usr/local/src

git clone -b v1.8 https://git.oschina.net/nwaycn/freeswitch.git

cd /usr/local/src/freeswitch

./bootstrap.sh -j

./configure --enable-portable-binary \
            --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
            --with-gnu-ld --with-python --with-erlang --with-openssl \
            --enable-core-odbc-support --enable-zrtp
			
make

make -j install

make -j cd-sounds-install

make -j cd-moh-install
```

```bash

注:如果要編譯mod_av,則需要以下步驟

wget http://download1.rpmfusion.org/free/el/updates/7/x86_64/x/x264-libs-0.148-24.20170521gitaaa9aa8.el7.x86_64.rpm

wget http://download1.rpmfusion.org/free/el/updates/7/x86_64/x/x264-devel-0.148-24.20170521gitaaa9aa8.el7.x86_64.rpm

rpm -hiv x264-libs-0.148-24.20170521gitaaa9aa8.el7.x86_64.rpm

rpm -hiv x264-devel-0.148-24.20170521gitaaa9aa8.el7.x86_64.rpm

cd /usr/local/src/freeswitch/libs

git clone https://gitee.com/nwaycn/libav.git

cd libav

 ./configure --enable-pic --enable-shared  --enable-libx264 --enable-gpl --extra-libs="-ldl" 

make   
                                                                                           
make install

cp /usr/local/lib/pkgconfig/libavcodec.pc    /usr/lib64/pkgconfig/
cp /usr/local/lib/pkgconfig/libavdevice.pc   /usr/lib64/pkgconfig/
cp /usr/local/lib/pkgconfig/libavfilter.pc   /usr/lib64/pkgconfig/
cp /usr/local/lib/pkgconfig/libavformat.pc   /usr/lib64/pkgconfig/
cp /usr/local/lib/pkgconfig/libavresample.pc /usr/lib64/pkgconfig/
cp /usr/local/lib/pkgconfig/libavutil.pc     /usr/lib64/pkgconfig/
cp /usr/local/lib/pkgconfig/libswscale.pc    /usr/lib64/pkgconfig/
    ldconfig 
如果pkgconfig配了后,還是會出現找不到動態庫,故而強行做軟鏈庫
ln -s /usr/local/lib/libavformat.so.56 /usr/lib64
ln -s /usr/local/lib/libavdevice.so.55 /usr/lib64
ln -s /usr/local/lib/libavfilter.so.5 /usr/lib64
ln -s /usr/local/lib/libavcodec.so.56 /usr/lib64
ln -s /usr/local/lib/libavresample.so.2 /usr/lib64
ln -s /usr/local/lib/libavutil.so.54 /usr/lib64
ln -s /usr/local/lib/libswscale.so.3 /usr/lib64
然后 

cd /usr/src/freeswitch

重新編譯freeswitch

ag真人视讯腾讯微博 绝地求生最新维护公告 鄂尔多斯市福彩中心官方 全天北京pk10赛车计划 哪里可以看比特币走势图 微信红包麻将哪儿下 福建时时彩规则倍数 云博娱乐城百家乐 湖北快3和值技巧 澳洲幸运5开奖官方网址 山西11选5zhushou 篮彩网 天津11选5预测 以太坊收益怎么算 91街机捕鱼网站 浙江麻将机遥控器 31名合买彩票