duanfengdian7014 2017-01-19 13:09
浏览 400

go go collidermain时出现golang.org/x/net/websocket错误-Ubuntu 14.04服务器上的AppRTC部署

I have been trying to deploy the AppRTC onto my school’s Ubuntu server but to no avail. I have followed the instructions on the Collider part until the command “go get collidermain” which return me with error as follow:

# golang.org/x/net/websocket
goWorkspace/src/golang.org/x/net/websocket/dial.go:18:19: error: reference to undefined identifier ‘tls.DialWithDialer’
   conn, err = tls.DialWithDialer(dialer, "tcp", parseAuthority(config.Location), config.TlsConfig)

I have no idea what causes the error and even though I have reinstalled multiple versions of Go (1.7.4, 1.6.4, 1.6.3, 1.6.) but I still get the same error at “go get collidermain”.

Anyone of you face this problem in deploying AppRTC? I'm hoping any kind souls who know the answer to this can help me with my problem. Thank you very much.

  • 写回答

1条回答 默认 最新

  • doukuanyong1939 2017-02-13 02:38
    关注

    I have resolved this problem with reinstall go-lang use follow steps:

    Thanks for @ssk's answer in question: How to deploy Apprtc's collider into Google App Engine?

    Collider needs to be deployed in Google Compute Engine or equivalent services by Amazon. Here is the list of steps that I had go through:

    • 1) Install go from: https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz

    • 2) Set PATH variable: export PATH=$PATH:/usr/local/go/bin

    • 3) Set GOROOT export GOROOT=/usr/local/go

    • 4) Set GOPATH (must be different from GOROOT) export GOPATH=/usr/local/go-dependencies (have to create go-dependencies directory if not there)

    • 5) Checkout apprtc code: git clone https://github.com/webrtc/apprtc.git

    • 6) Copy collider files to $GOROOT/src: sudo cp -rf apprtc/src/collider/collider /usr/local/go/src/ sudo cp -rf apprtc/src/collider/collidermain /usr/local/go/src/ sudo cp -rf apprtc/src/collider/collidertest /usr/local/go/src/

    • 7) Install websocket: go get -v golang.org/x/net/websocket

    • 8) Install Dependencies: go get collidermain

    • 9) Install collidermain: go install collidermain

    • 10 Run collidermain: /usr/local/go/bin/collidermain -port=8089 -tls=false (need a certificate to run with tls enabled)

    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题