一、安裝環境:
CentOS 7
yum使用了阿里的鏡像環境(在公司安裝,沒有使用阿里yum沒有出現這個問題,而且使用阿里yum好像也有一些包是找不到,需要自己去下載安裝)
freeswitch1.8.5
cmake3.14.0
二、在安裝freeswitch的時候出現的錯誤
making all mod_opus
make[4]: Entering directory `/usr/src/freeswitch-1.8.5/src/mod/codecs/mod_opus'
Makefile:929: *** You must install libopus-dev to build mod_opus. Stop.
make[4]: Leaving directory `/usr/src/freeswitch-1.8.5/src/mod/codecs/mod_opus'
make[3]: *** [mod_opus-all] Error 1
make[3]: Leaving directory `/usr/src/freeswitch-1.8.5/src/mod'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/freeswitch-1.8.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/freeswitch-1.8.5'
make: *** [all] Error 2
解決方法:參考官網 https://centos.pkgs.org/6/linuxtech/libopus-devel-1.1-1.el6.i686.rpm.html
上面的具體操作:
1、cd /etc/yum.repos.d/
2、創建文件
touch linuxtech.repo
3、使用vi 打開linuxtech.repo文件
vi linuxtech.repo
4、把下面的內容複製進去
[linuxtech]
name=LinuxTECH
baseurl=http://pkgrepo.linuxtech.net/el6/release/
enabled=1
gpgcheck=1
gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET
5、進行libopus-devel
yum install libopus-devel