webrtc 编译时遇到的问题

装载https://blog.csdn.net/day_day_up1991/article/details/52051963

一、房间服务器grunt build中问题

1、   在房间服务器grunt build过程中,提示

  …
requests.exceptions.ConnectionError:[Errno -3] Temporary failure in name resolution
 Use --force to continue. 
Aborted due to warnings


解决方式:

安装Python2.7;


2、python为2.7之后,再次grunt build,提示

Running"shell:buildAppEnginePackage" (shell) task

Traceback(most recent call last):

  File"./build/build_app_engine_package.py", line 12, in <module>

    import requests

ImportError:No module named requests

Warning:Command failed: Traceback (most recent call last):

  File"./build/build_app_engine_package.py", line 12, in <module>

    import requests

ImportError:No module named requests

 Use --force to continue.

Aborteddue to warnings.


解决方式

step1、先安装setuptools模块

wgethttps://bootstrap.pypa.io/ez_setup.py -O - | sudo python

有的系统可能由于某些原因,需要加上参数非安全连接的参数,具体参见系统提示;


step2、安装requests

git clone git://github.com/kennethreitz/requests.git
cd requests/
python2 setup.py install


安装完成,再次grunt build编译成功!


3、关于GAE

在国内并且没有vpn时,grunt 过程中并不会下载GAE。GAE得自己FQ下载!!!!!!!!!!!


二、信令服务器collider,

1、go环境设置

下载go之后,在进行go get ***和go install **之前,需要设置GOPATH路径,否则提示cannot access ****

设置方法:export GOPATH=~/collider_root(你的信令服务器目录)


2、go get collidermain过程中提示:

package golang.org/x/net/websocket: unrecognized import path "golang.org/x/net/websocket"


解决:

问题产生的原因是因为外网受限,无法直接从外网下载。可以曲线解决。

1. clone git上的代码到本地,比如clone到了家目录(~/)
git clone https://github.com/golang/net.git ~/collider_root
会在collider_root目录下生成net目录文件,并将git clone的源码放到该目录文件下。


2. 在GOPATH中创建相应的目录,比如GOPATH=~/collider_root
cd ~/collider_root
collider_root$  mkdir-psrc/golang.org/x/net/


3. 拷贝websocket源码到上面创建的目录
cd ~/collider_root
cp -r ~/collider_root/net/websocket/  ~/collider_root/src/golang.org/x/net/websocket


posted @ 2018-06-28 16:23  清澈见底  阅读(653)  评论(0编辑  收藏  举报