我想在CentOS7上安装janus网关。我阅读了以下文档并尝试安装。https://github.com/meetecho/janus-gateway/blob/master/README.md
git clone https://github.com/meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
./configure --prefix=/opt/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-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.我以以下方式安装了lib尼斯(libnice-0.1.3-4.el7.x86_64)。
yum install libnice我该怎么解决呢?谢谢。
发布于 2019-09-24 09:20:44
您应该下载lib尼斯源代码来安装。https://gitlab.freedesktop.org/libnice/libnice
发布于 2019-10-07 11:38:41
试试这个,然后重建
echo "export PKG_CONFIG_PATH=/usr/lib/pkgconfig" >> ~/.bashrc
source ~/.bashrc发布于 2020-09-30 05:58:32
免责声明:我使用Ubuntu18.04测试这一点。
如果您正在使用Ubuntu系统并试图安装Janus并运行以下代码
./configure --prefix=/opt/janus
然后得到这个错误:No package 'nice' found
确保你已经安装了良好的能力。
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的答案安装尼斯在Ubuntu中是行不通的。它必须使用智能来安装。
https://stackoverflow.com/questions/58064311
复制相似问题