4

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

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

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

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

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

4

3 回答 3

8

我按照以下步骤在 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/
于 2016-09-02T23:31:00.663 回答
0

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

于 2021-01-04T09:13:16.193 回答
0

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

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

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

于 2020-09-14T08:37:34.023 回答