webrtc - CentOS7安装janus-gateway报错
问题描述
我想在 CentOS7 上安装 janus-gateway。我阅读了以下文档并尝试安装。 https://github.com/meeetecho/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-gateway 会导致错误。错误如下。
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
我该如何解决?谢谢你。
解决方案
试试这个并重建
echo "export PKG_CONFIG_PATH=/usr/lib/pkgconfig" >> ~/.bashrc
source ~/.bashrc
推荐阅读
- c++ - 在移动赋值运算符上强制复制赋值
- sql - laravel : 将 sqk 转换为 laravel OEM
- sql - 避免通过 Node 中的 `mssql` 包多次访问 SQL Server db
- java - 如何使用相同的 RecyclerView 制作 SearchView?
- asp.net - netstandard和dotnet core的分离
- prolog - 调用自己定义的谓词时如何访问数据库成员
- stm32 - 到达 RX 回调后 HAL_UART_TRANSMIT_DMA 未发送
- angular - Angular8 热敏打印
- emacs - Symbol 作为变量的值是 void:erlang-xemacs-p
- regex - awk 匹配 html 中的模式并使用正则表达式