1. 程式人生 > >CentOS 6 安裝最新版Freeswitch(版本: 1.4.15)

CentOS 6 安裝最新版Freeswitch(版本: 1.4.15)

由於要試驗一個視訊會議的專案,所以需要server端用最新的Freeswitch來進行測試

1. 準備工作:

yum install autoconf automake gcc-c++ git-core libjpeg-devel libtool make ncurses-devel pkgconfig
yum install unixODBC-devel openssl-devel libogg-devel libvorbis-devel curl-devel \  libtiff-devel libjpeg-devel python-devel expat-devel zlib zlib-devel bzip2 which


2. 下載最新的Freeswitch安裝包:

http://files.freeswitch.org/freeswitch-1.4.15.tar.gz

copy到/opt下面解壓

3. 執行./configure 

    此時會報錯: 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.

    看來是沒有安裝sqlite3的包

4. 安裝sqlite3:

     下載sqlite3安裝配置檔案: http://www.sqlite.org/2015/sqlite-autoconf-3080800.tar.gz

      解壓後./configure make make install

      yum install sqlite-devel

      [[email protected] sqlite-autoconf-3080800]# sqlite3 --version
      3.8.8 2015-01-16 12:08:06 7d68a42face3ab14ed88407d4331872f5b243fdf

5. 回到Freeswitch

    又遇到新的問題: checking for libpcre >= 7.8... Package libpcre was not found in the pkg-config search path. Perhaps you should add the directory containing `libpcre.pc' to the PKG_CONFIG_PATH environment variable No package 'libpcre' found
configure: error: Library requirements (libpcre >= 7.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

     yum install libpcre-devel後繼續

     (如果沒有這個包的話可以直接從以下地址下載: http://rpm.pbone.net/index.php3/stat/4/idpl/23606412/dir/centos_6/com/pcre-devel-8.13-1.1.x86_64.rpm.html

      如果遇到NOKEY的錯誤可以:

rpm --import /etc/pki/rpm-gpg/RPM* 

然後重新安裝即可正常,或者直接帶--force --nodeps引數安裝;

rpm -ivh *rpm --force --nodeps 這樣即可正常安裝。

)

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

     yum install speex-devel後繼續

     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

     按照提示註釋掉mod_enum在modules.conf檔案中

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

     yum install libedit-devel

     看來這已經是最後一個block了,重新執行./configure 成功通過;

     Registering you for ClueCon http://www.cluecon.com .. See you in August. ;-)




-------------------------- FreeSWITCH configuration --------------------------


  Locations:
      FHS enabled:     no


      prefix:          /usr/local/freeswitch
      exec_prefix:     ${prefix}
      bindir:          ${exec_prefix}/bin
      sysconfdir:      /usr/local/freeswitch/conf
      libdir:          ${exec_prefix}/lib


      certsdir:        /usr/local/freeswitch/certs
      dbdir:           /usr/local/freeswitch/db
      grammardir:      /usr/local/freeswitch/grammar
      htdocsdir:       /usr/local/freeswitch/htdocs
      logfiledir:      /usr/local/freeswitch/log
      modulesdir:      /usr/local/freeswitch/mod
      pkgconfigdir:    ${exec_prefix}/lib/pkgconfig
      recordingsdir:   /usr/local/freeswitch/recordings
      runtimedir:      /usr/local/freeswitch/run
      scriptdir:       /usr/local/freeswitch/scripts
      soundsdir:       /usr/local/freeswitch/sounds
      storagedir:      /usr/local/freeswitch/storage
      cachedir:        /usr/local/freeswitch/cache


------------------------------------------------------------------------------

6. make

    出現的錯誤是connot connect to files.freeswitch.org

    修改/etc/wgetrc

    https_proxy = http://135.3.26.190:xxxxx/
    http_proxy = http://135.3.26.190:xxxxx/
    ftp_proxy = http://135.3.26.190:xxxxx/

    export http_proxy=http://135.3.26.190:xxxxx/

    重新make


7. 載入聲音檔案

make all install cd-sounds-install cd-moh-install
Freeswitch安裝完成:)

相關推薦

CentOS 6 安裝新版Freeswitch版本: 1.4.15

由於要試驗一個視訊會議的專案,所以需要server端用最新的Freeswitch來進行測試 1. 準備工作: yum install autoconf automake gcc-c++ git-core libjpeg-devel libtool make ncurses-

安裝新版MysqlAPT方式安裝

con nload 修改配置 http ini ref ges deb root 訪問網址:http://dev.mysql.com/downloads/repo/apt/ -> http://dev.mysql.com/doc/mysql-apt-repo-q

centos安裝新版supervisord後臺服務

#安裝python的安裝工具pip wget http://mirrors.opencas.cn/epel/epel-release-latest-7.noarch.rpm rpm -ivh epel-release-latest-7.noarch.rpm yum -y install python-pip

教你如何在Ubuntu上安裝新版QQ而不是那個老掉牙的2012國際版

———————————————————————— 2017-更新:我這片文章的方法可能已經過時,建議大家參考此文:Ubuntu下安裝新版QQ 如果大家是Ubuntu 16.0.4,那麼很好,我和你一樣,可以完美使用最新的QQ 8.X。 大家都知道,如果你

CentOS 7.4下源碼安裝 Apache HTTP Serverhttpd-2.4.35

-- pre mir 成功 httpd 來安 ces mos .cn CentOS 7.4下源碼安裝 Apache HTTP Server(httpd-2.4.35) 前提:確保安裝了expat-devel, APR包 (apr-1.6.3.tar.gz 和 apr-ut

CentOS 7.4下原始碼安裝 Apache HTTP Serverhttpd-2.4.35

CentOS 7.4下原始碼安裝 Apache HTTP Server(httpd-2.4.35) 前提:確保安裝了expat-devel, APR包 (apr-1.6.3.tar.gz 和 apr-util-1.6.1.tar.gz); 用YUM方式安裝expat-devel 和 apr-ut

centos 7 安裝及配置 iptables yum install iptables-services

一、防火牆配置 不知道為什麼,雲主機沒有開啟firewall 或iptables,記錄一下配置iptables防火牆的步驟 1、檢測並關閉firewall 1 2 3 4 5 systemctl status firewalld.service #檢測是否開啟了firewall

Storm的StreamID使用樣例版本1.0.2

alt constant rate fields olt topology next blog for 隨手嘗試了一下StreamID的的用法。留個筆記。 ==數據樣例== { "Address": "小橋鎮小橋中學對面", "CityCode": "

Opencv庫組成以及主要檔案作用版本2.4.9

                                                                             opencv主要資料夾構成(版本2.4.

springBoot 日誌按天生成日誌檔案,以及配置生成HTTP 請求的日誌,列印引數版本1.5.9

日誌按天生成日誌檔案  logback-spring.xml   內容如下(放到application.properties 所在資料夾裡面):  <?xml version="1.0" encoding="UTF-8"?> <configuration

CentOS 7.3下安裝新版ElasticSearch 6.3.2

elasticsearch簡介 ElasticSearch是一個基於Lucene的搜尋伺服器。它提供了一個分散式多使用者能力的全文檢索引擎,基於RESTful web介面。Elasticsearch是用Java開發的,並作為Apache許可條款下的開放原始碼釋出,是當前流行的企業級搜尋引擎。設計用於雲端計算

centos安裝新版的docker-ce二進位制安裝

在centos上安裝過docker的都知道,yum install docker ,這種方式安裝的docker,最新版的centos系統上,版本應該是1.13.1,而目前最新版的docker到了18.03.0了。那麼怎麼安裝最新版的docker-ce呢? 1、系統要求 L

CentOS安裝新版rabbitmq3.6.5

1.安裝Erlang 1.1前置依賴 yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel perl 

CentOS 6.9安裝類型選擇Basic Server/Web Server

devel ref http com base linux href linu postgresq Desktop :基本的桌面系統,包括常用的桌面軟件,如文檔查看工具。 Minimal Desktop:基本的桌面系統,包含的軟件更少。 Minimal:基本的系統,不含

【前端】CentOS 7 系列教程之五: 安裝新版 nginx 並設置 nginx 代理轉發 node 服務

con config get http ati sha cal 安裝 pre 轉載請註明出處:http://www.cnblogs.com/shamoyuu/p/linux_5.html 進入/usr/local目錄 cd /usr/local 下載最新

CentOS 7下新版(6.2.4)ELK+Filebeat+Log4j日誌集成環境搭建完整指南

pan 而是 17. 現在 關於 vim 提高 用處 新版 現在的公司由於絕大部分項目都采用分布式架構,很早就采用ELK了,只不過最近因為額外的工作需要,仔細的研究了分布式系統中,怎麽樣的日誌規範和架構才是合理和能夠有效提高問題排查效率的。經過仔細的分析和研究,確定下面的架

【ELK之es】Centos7.3版本安裝新版elasticsearch6.3.2

text 監聽 分布式 proc sta trap 錯誤 支持 ets elasticsearch簡介 ElasticSearch是一個基於Lucene的搜索服務器。它提供了一個分布式多用戶能力的全文檢索引擎,基於RESTful web接口。Elasticsearch是用J

【Linux】【MySQL】CentOS7安裝新版MySQL8.0.13新版MySQL從安裝到執行

  1、前言   框框部落格線上報時:2018-11-07 19:31:06   當前MySQL最新版本:8.0.13 (聽說比5.7快2倍)   官方之前表示:MySQL 8.0 正式版 8.0.11 已釋出,MySQL 8 要比 MySQL 5.7 快 2 倍,還帶來了大量的改

linux下編譯安裝新版phalcon centos下PHP7新增phalcon擴充套件

linux下編譯安裝phalcon 1、下載原始碼包    執行命令:  git clone --depth=1 git://github.com/phalcon/cphalcon.git 進入目錄  執行命令:  

RabbitMQ 3.6.1 升級至 3.7.9 版本(Windows 升級至Centos) centos安裝RabbitMQ 3.7.9 (使用RPM) Centos 7安裝RabbitMQ 3.7.8版本(單機版)-不使用RPM

    隨著公司業務量的增加,原本部署在Windows伺服器的RabbitMQ叢集(3.6.1)總是出現莫名其妙的問題,經查詢官方Issue,確認是RabbitMQ 3.6.1 版本的bug。檢視從3.6.1 版本至 3.7.9 版本的變更日誌,可以發現RabbitMQ官方修復了不少bug