2021-05-12 14:32:11
CentOS 7.2安裝設定 FreeSwitch X-Lite
CentOS 7.2 編譯FreeSwitch
-
FreeSwitch版本 : 1.6
-
作業系統基本是最小安裝
-
時間:2017-04/26
溫馨提示 : 如果想更快的編譯成功可以先把所有的yum的軟體安裝完成(及所有的yum命令執行一下)
步驟和問題解決
-
1.安裝git
-
yum install Git
-
2.獲取原始碼
-
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch.git
3.按照官方文件搭建環境
-
官方文件地址
https://freeswitch.org/confluence/display/FREESWITCH/CentOS+7+and+RHEL+7 -
安裝freeswitch的rpm的倉庫
yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release11
-
安裝開發環境(上面步驟需要成功)
yum install -y git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel libxml2-devel libyuv-devel opus-devel libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel yasm-devel11
4.開始編譯
-
編譯
./bootstrap.sh -j11
-
注意:執行失敗提示( autoconf not found)
yum install autoconf automake libtool11
-
再次編譯
./bootstrap.sh -j ./configure1212
5.解決configure中出現的錯誤
-
1 . The C++ compiler does not work. Please (re)install the C++ compiler
yum install gcc-c++11
-
2 . no usable zlib; please install zlib devel package or equivalent
yum install zlib-devel11
-
3 . Library requirements (sqlite3 >= 3.6.20) not met;
yum install sqlite-devel11
-
4 . Library requirements (libcurl >= 7.19) not met;
yum install curl-devel11
-
5 . Library requirements (libpcre >= 7.8) not met;
yum install pcre-devel11
-
6 . Library requirements (speex >= 1.2rc1 speexdsp >= 1.2rc1) not met;
yum install speex-devel11
-
7 . You need to either install libldns-dev or disable mod_enum in modules.conf
yum install ldns-devel11
-
8 . You need to either install libedit-dev (>= 2.11) or configure with –disable-core-libedit-support
yum install libedit-devel11
-
9 . OpenSSL >= 1.0.1e and associated developement headers required
yum install openssl-devel11
-
成功後的結果應該是下圖所示
6 . 解決編譯時的錯誤
-
編譯
make11
-
6.1 Neither yasm nor nasm have been found.
yum install nasm -y11
-
6.2 fatal error: lua.h: No such file or directory
yum install lua-devel11
-
6.3 You must install libopus-dev to build mod_opus. Stop.
yum install opus-devel ./configure && make1212
-
6.4 You must install libsndfile-dev to build mod_sndfile.
yum install libsndfile-devel ./configure && make1212
-
編譯成功結果
7 安裝到預設目錄
-
安裝
make install11
-
結果
-
安裝聲音檔案
這個是需要下載的,可以不用安裝
make cd-moh-install && make cd-sounds-install
安裝SIP軟電話X-lite
注意:需要聯網安裝
第二步:
最後測試:
本文永久更新連結地址:http://www.linuxidc.com/Linux/2017-04/143228.htm
相關文章