【问题标题】:How to start Janus WebRTC gateway?如何启动 Janus WebRTC 网关?
【发布时间】:2016-06-23 18:24:19
【问题描述】:

我在 /usr/local/lib 上安装了成功的 Janus,然后我重新配置以启动 Janus。但是当我做sudo janus 时,我得到了这个错误:

/*
debian@beaglebone:/usr/local/bin$ janus
---------------------------------------------------
  Starting Meetecho Janus (WebRTC Gateway) v0.1.0
---------------------------------------------------

Checking command line arguments...
Debug/log level is 4
Debug/log timestamps are disabled
Debug/log colors are enabled
Adding 'vmnet' to the ICE ignore list...
Using 10.92.200.16 as local IP...
[WARN] Token based authentication disabled
Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, IPv6 support disabled)
ICE handles watchdog started
TURN REST API backend: (disabled)
[WARN] Janus is deployed on a private address (10.92.200.16) but you didn't specify any STUN server! Expect trouble if this is supposed to work over the internet and not just in a LAN...
BUNDLE is NOT going to be forced
rtcp-mux is NOT going to be forced
Fingerprint of our certificate: D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38
[WARN] Data Channels support not compiled
Plugins folder: /usr/local/lib/janus/plugins
Loading plugin 'libjanus_voicemail.so'...
JANUS VoiceMail plugin initialized!
Loading plugin 'libjanus_recordplay.so'...
JANUS Record&Play plugin initialized!
Loading plugin 'libjanus_echotest.so'...
VoiceMail watchdog started
EchoTest watchdog started
Record&Play watchdog started
JANUS EchoTest plugin initialized!
Loading plugin 'libjanus_videocall.so'...
JANUS VideoCall plugin initialized!
Loading plugin 'libjanus_streaming.so'...
VideoCall watchdog started
JANUS Streaming plugin initialized!
Loading plugin 'libjanus_videoroom.so'...
JANUS VideoRoom plugin initialized!
Streaming watchdog started
Loading plugin 'libjanus_audiobridge.so'...
JANUS AudioBridge plugin initialized!
VideoRoom watchdog started
Loading plugin 'libjanus_sip.so'...
AudioBridge watchdog started
JANUS SIP plugin initialized!
Transport plugins folder: /usr/local/lib/janus/transports
Loading transport plugin 'libjanus_http.so'...
SIP watchdog started
[ERR] [janus.c:main:3684]       Couldn't load transport plugin 'libjanus_http.so': libmicrohttpd.so.12: cannot open shared object file: No such file or directory
[FATAL] [janus.c:main:3741] No Janus API transport is available... enable at least one and restart Janus

*/ libjanus_http.so 和 libmicrohttpd.so.12 存在于 usr/local/lib/janus/transport 和 /usr/local/lib

错误是什么意思?

【问题讨论】:

    标签: debian beagleboneblack janus


    【解决方案1】:

    我猜你错过了一两步,也许它会解决你为我做的问题:

    sudo apt-get install libmicrohttpd-dev libjansson-dev libnice-dev libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev libini-config-dev libcollection-dev libwebsockets-dev pkg-config gengetopt automake libtool doxygen graphviz git cmake
    

    sudo apt-get install libavformat-dev

    mkdir -p ~/build

    cd ~/build

    git clone git://github.com/meetecho/janus-gateway.git
    
    
    cd janus-gateway
    
    sh autogen.sh
    
    ./configure --disable-data-channels --disable-websockets --disable-rabbitmq --disable-docs --prefix=/opt/janus LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" CFLAGS="-I/usr/local/include"
    
    make && sudo make install
    sudo make configs
    

    然后:

    cd /opt/janus/bin/ 
    
    ./janus -F /opt/janus/etc/janus/
    

    【讨论】:

    • 从 09/2019 开始使用 v0.7 仍在为我工作。对我来说,很可能是修复它的“./configure”或“apt install”行。
    • @RobertBain 您能否发表您的答案。你是怎么安装的?我是 Janus 的新手,正在尝试使用 Ubuntu 18.04 在 AWS 上安装它。
    • 我只是按照我们正在评论的答案中已经写的内容进行操作,没有额外的内容。 Janus 开发人员积极访问了 janus 的 google 组/论坛,我建议您联系那里。祝你好运。
    【解决方案2】:

    我遇到了同样的问题。使用找到的信息here 运行解决了问题

    make configs
    

    在安装目录上。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-03
      • 1970-01-01
      • 2018-03-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多