【问题标题】:Janus WebRTC installation issueJanus WebRTC 安装问题
【发布时间】:2016-01-05 00:24:45
【问题描述】:

我在 Ubuntu 机器(14.04 64 位)中安装 Janus WebRTC 网关。我按照以下链接中的说明进行操作:

但是,尝试执行 janus 时出现以下错误:

https://github.com/meetecho/janus-gateway(readme.md 文件)

[致命] [janus.c:main:3670] 没有可用的 Janus API 传输... 启用至少一个并重新启动 Janus

有人知道问题可能是什么吗?我只会使用没有 WebStockets 或 RabbitMQ 的 REST API。

【问题讨论】:

    标签: installation makefile webrtc janus-gateway


    【解决方案1】:

    我按照以下步骤在 Ubuntu 14 上成功安装了 Janus:

    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/
    

    【讨论】:

      【解决方案2】:

      我之前遇到过这个问题,我写了一个脚本来安装所有东西,只需运行这个

      wget https://gist.githubusercontent.com/johnmelodyme/966f474a99b6dd0cf4e7ac19ba4258da/raw/0f1779499c62eeee3e2a577ef641e94e57b71154/janus.sh && sh janus.sh
      

      希望对您有所帮助,我相信需要安装某些依赖项,但您错过了。在https://github.com/meetecho/janus-gateway 中声明了所需的依赖项,必须正确安装。

      【讨论】:

        【解决方案3】:

        这是因为libmicrohttpd版本低于要求,手动下载安装libmicrohttpd(不要使用yum或apt-get)。

        【讨论】:

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