Centos6安裝FreeSWITCH 1.5時./configure問題解決記錄



系統:Centos 6.4 64位;

FreeSWITCH版本:1.5

具體的安裝過程參考FreeSWITCH 官網wiki (也可以參考我的博客《Centos6安裝FreeSWITCH》)

從FreeSWITCH 安裝過程./configure 時遇到sqlite 的問題開始:

checking for sqlite3 >= 3.6.20… Package sqlite3 was not found in the pkg-config search path. Perhaps you should add the directory containing `sqlite3.pc’ to the PKG_CONFIG_PATH environment variable No package ‘sqlite3′ found 
configure: error: Library requirements (sqlite3 >= 3.6.20) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

應該是缺少開發包,於是就開始了這一路的開發包手工加載。

[root@localhost freeswitch]# yum install sqlite-devel

[root@localhost freeswitch]#./configure

[root@localhost freeswitch]# yum install libcurl-devel 

[root@localhost freeswitch]#./configure

[root@localhost freeswitch]# yum install pcre 
[root@localhost freeswitch]# yum install pcre-devel

[root@localhost freeswitch]#./configure

[root@localhost freeswitch]# yum install speex 
[root@localhost freeswitch]# yum install speex-devel

[root@localhost freeswitch]#./configure

 

checking for libldns >= 1.6.6... checking for ldns_str2rdf_a in -lldns... no
configure: error: You need to either install libldns-dev or disable mod_enum in modules.conf #

按提示沒有找到libldns-dev 包,所以我選擇disable mod_enum,做法如下:

[root@localhost freeswitch]#vi modules.conf 

#applications/mod_enum

[root@localhost freeswitch]#./configure

 

configure: error: You need to either install libedit-dev (>= 2.11) or configure with --disable-core-libedit-support

[root@localhost freeswitch]#yum search libedit-dev

=============== N/S Matched: libedit-dev ========================
libedit-devel.i686 : Development files for libedit
libedit-devel.x86_64 : Development files for libedit

[root@localhost freeswitch]#yum install libedit-devel

[root@localhost freeswitch]#./configure

至此,freeSWITCH的配置已經完成。

然後make並安裝聲音文件,過程如下:

 [root@localhost freeswitch]# make

 [root@localhost freeswitch]# make all install cd-sounds-install cd-moh-install 

 


+---------- FreeSWITCH Build Complete ----------+
+ FreeSWITCH has been successfully built. +
+ Install by running: +
+ +
+ make install +
+ +
+ While you're waiting, register for ClueCon! +
+ http://www.cluecon.com +
+ +
+-----------------------------------------------+

.=======================================================================================================.
| ____ _ ____ |
| / ___| |_ _ ___ / ___|___ _ __ |
| | | | | | | |/ _ \ | / _ \| '_ \ |
| | |___| | |_| | __/ |__| (_) | | | | |
| \____|_|\__,_|\___|\____\___/|_| |_| |
| |
| _____ _ _ ____ __ |
| |_ _|__| | ___ _ __ | |__ ___ _ __ _ _ / ___|___ _ __ / _| ___ _ __ ___ _ __ ___ ___ |
| | |/ _ \ |/ _ \ '_ \| '_ \ / _ \| '_ \| | | | | | / _ \| '_ \| |_ / _ \ '__/ _ \ '_ \ / __/ _ \ |
| | | __/ | __/ |_) | | | | (_) | | | | |_| | | |__| (_) | | | | _| __/ | | __/ | | | (_| __/ |
| |_|\___|_|\___| .__/|_| |_|\___/|_| |_|\__, | \____\___/|_| |_|_| \___|_| \___|_| |_|\___\___| |
| |_| |___/ |
| _____ _ _ |
| | ____|_ _____ _ __ _ _ / \ _ _ __ _ _ _ ___| |_ |
| | _| \ \ / / _ \ '__| | | | / _ \| | | |/ _` | | | / __| __| |
| | |___ \ V / __/ | | |_| | / ___ \ |_| | (_| | |_| \__ \ |_ |
| |_____| \_/ \___|_| \__, | /_/ \_\__,_|\__, |\__,_|___/\__| |
| |___/ |___/ |
| ____ _ ____ |
| __ ____ ____ __ / ___| |_ _ ___ / ___|___ _ __ ___ ___ _ __ ___ |
| \ \ /\ / /\ \ /\ / /\ \ /\ / / | | | | | | |/ _ \ | / _ \| '_ \ / __/ _ \| '_ ` _ \ |
| \ V V / \ V V / \ V V / _ | |___| | |_| | __/ |__| (_) | | | | _ | (_| (_) | | | | | | |
| \_/\_/ \_/\_/ \_/\_/ (_) \____|_|\__,_|\___|\____\___/|_| |_| (_) \___\___/|_| |_| |_| |
| |
.=======================================================================================================.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章