Webrtc 在CentOS7上安装janus网关时出错
我想在CentOS7上安装janus网关。 我阅读了以下文档并尝试安装。 但是,配置janus网关将导致错误。错误如下Webrtc 在CentOS7上安装janus网关时出错,webrtc,centos7,janus,janus-gateway,Webrtc,Centos7,Janus,Janus Gateway,我想在CentOS7上安装janus网关。 我阅读了以下文档并尝试安装。 但是,配置janus网关将导致错误。错误如下 checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for pkg-config... /bin/pkg-c
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for JANUS... no
configure: error: Package requirements (
glib-2.0 >= 2.34
libconfig
nice
jansson >= 2.5
libssl >= 1.0.1
libcrypto
) were not met:
No package 'nice' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables JANUS_CFLAGS
and JANUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
我以以下方式安装了libnice(libnice-0.1.3-4.el7.x86_64)
yum install libnice
我怎样才能解决它?
谢谢。您应该下载libnice源代码进行安装。 尝试此操作并重建
echo "export PKG_CONFIG_PATH=/usr/lib/pkgconfig" >> ~/.bashrc
source ~/.bashrc
你需要开发libnice
yum install libnice-devel
免责声明:我在测试这个时使用的是Ubuntu 18.04 如果您正在使用Ubuntu系统并试图安装Janus并运行此代码
/configure--prefix=/opt/janus
然后出现此错误:找不到包'nice'
确保您已经安装了来自aptitude的nice
sudo install aptitude
aptitude install libmicrohttpd-dev libjansson-dev \
libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev \
libopus-dev libogg-dev libcurl4-openssl-dev liblua5.3-dev \
libconfig-dev pkg-config gengetopt libtool automake
出于某种原因,使用Frank、Ahmet或Zallfire的答案安装nice在Ubuntu中不起作用。它必须使用aptitude安装。这个问题说明操作系统是CentOS7,而不是Ubuntu,所以很明显,如果你必须安装一些东西,答案将不适用于Ubuntu,因为Ubuntu使用
apt
,而CentOS使用yum
(谷歌“什么是软件包管理器”)。所以基本上,你在回答一个不同的问题。你不应该这样做,但我不会标记这个答案,因为它可能会对有这个问题并且正在使用Debian风格的系统的人有所帮助。嗨,toydarian,我找不到在Ubuntu上运行的人的类似问题,这是我能在google上找到的最接近的问题。下次我应该创建一个新的问题,而不是添加到这里吗?不,我想这对其他看到这个的Ubuntu用户是有帮助的,所以没关系。你听起来很困惑,其他的答案对你不合适,所以我补充了一个解释。顺便说一句,您不需要安装aptitude
,只需使用apt安装…
sudo install aptitude
aptitude install libmicrohttpd-dev libjansson-dev \
libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev \
libopus-dev libogg-dev libcurl4-openssl-dev liblua5.3-dev \
libconfig-dev pkg-config gengetopt libtool automake