Mac/Ubuntu 上搭建 WebRtc/licode 伺服器

來源:互聯網
上載者:User

標籤:bsp   zip   yum   構造   libjpeg   git clone   glibc   autoconf   協助   

1.下代碼

git clone https://github.com/ging/licode.gitcd licode

 

2.安裝依賴

2.1 配置ubuntu開發環境:

2.1.1 安裝C/C++開發環境

    1. sudo apt-get install build-essential //安裝主要編譯工具 gcc, g++, make     2. sudo apt-get install autoconf automake1.9     3. sudo apt-get install flex bison      4. sudo apt-get install manpages-dev //安裝C語言函數man文檔     5. sudo apt-get install binutils-doc cpp-doc gcc-doc glibc-doc stl-manual  //安裝相關文檔 

2.1.2 安裝gnome案頭開發環境

    1. sudo apt-get install gnome-core-devel //安裝核心檔案     2. sudo apt-get install pkg-config             3. sudo apt-get install devhelp           //安裝GTK文檔查看程式     4. sudo apt-get install libglib2.0-doc libgtk2.0-doc //安裝 API參考手冊及其它協助文檔     5. sudo apt-get instal glade libglade2-dev //安裝GTK介面構造程式 

2.2 CentOS環境

yum install gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libxml2-devel gettext-devel pcre-devel

 

3.安裝依賴

3.1 mac

./scripts/installMacDeps.sh

3.2 ubuntu

./licode/scripts/installUbuntuDeps.sh

 

4.安裝licode

./scripts/installErizo.sh./scripts/installNuve.sh

 

5.安裝基例子

./scripts/installBasicExample.sh

 

6.運行licode和例子,在兩個終端運行,或後台運行

./licode/scripts/initLicode.sh./licode/scripts/initBasicExample.sh

 

7.在瀏覽器輸入:localhost:3001,允許訪問麥克風和網路攝影機就行了。

 

安裝 Licode, 在執行 ./scripts/installErizo.sh和./scripts/installNuve.sh指令碼時,

一定在執行之前加上 sudo,因為這兩個指令碼是需要管理員權限的。

 

Mac/Ubuntu 上搭建 WebRtc/licode 伺服器

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.