Unable to install Janus completely on ubuntu 20.04

2,167 views
Skip to first unread message

Gaurav Rozatkar

unread,
Jun 25, 2021, 6:20:17 AM6/25/21
to meetecho-janus
Hello All,

I am unable to install janus completely so I have setup janus service on my server and it is running also some of the plugins demoed on janus-gateway are working however it seems that I am unable to convert my recordings from MJR to webm since few libraries are not installed.

I am getting this error whenever i run 
./configure --prefix=/opt/janus --enable-post-processing
on janus-gateway

configure: error: Package requirements ("glib-2.0 >= 2.34
                    gio-2.0 >= 2.34
                    libconfig
                    nice
                    jansson >= 2.5
                    libssl >= 1.0.1
                    libcrypto
                    zlib") were not met:

No package 'nice' found

I have installed them from their official sites/pages but have no luck in configuring still
Please help.

Andrei Dumitriu

unread,
Jun 25, 2021, 6:41:59 AM6/25/21
to meetecho-janus
Since the build for libnice has been changed we will need to install the builders first:

pip3 install meson ninja

then we proceed with libnice itself:

git clone https://gitlab.freedesktop.org/libnice/libnice
cd libnice
meson --prefix=/usr build && ninja -C build && sudo ninja -C build install

Gaurav Rozatkar

unread,
Jun 25, 2021, 7:05:04 AM6/25/21
to meetecho-janus
Thanks @Andrei,

I was able to get libnice installed and installed other dependencies also...
after running config and Make 

Now I am getting this error 


`which git` rev-parse HEAD | awk 'BEGIN {print "#include \"version.h\""} {print "const char *janus_build_git_sha = \"" $0"\";"} END {}' > version.c
echo "Fri Jun 25 10:58:00 UTC 2021" | awk 'BEGIN {} {print "const char *janus_build_git_time = \""$0"\";"} END {} ' >> version.c
echo "114" | awk 'BEGIN {} {print "int janus_version = "$0";"} END {} ' >> version.c
echo "0.11.4" | awk 'BEGIN {} {print "const char *janus_version_string = \""$0"\";"} END {} ' >> version.c
PKG_CONFIG_PATH="/usr/share/" pkg-config --modversion nice | awk 'BEGIN {} {print "const char *libnice_version_string = \""$0"\";"} END {} ' >> version.c
make  all-recursive
make[1]: Entering directory '/root/janus-gateway'
Making all in html
make[2]: Entering directory '/root/janus-gateway/html'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/janus-gateway/html'
make[2]: Entering directory '/root/janus-gateway'
  CC       janus-apierror.o
gcc: error: true: No such file or directory
make[2]: *** [Makefile:2358: janus-apierror.o] Error 1
make[2]: Leaving directory '/root/janus-gateway'
make[1]: *** [Makefile:3392: all-recursive] Error 1
make[1]: Leaving directory '/root/janus-gateway'
make: *** [Makefile:1545: all] Error 2

Andrei Dumitriu

unread,
Jun 25, 2021, 8:34:02 AM6/25/21
to meetecho-janus
I started a clean Ubuntu 20.04 on my virtualbox and installed janus-gateaway without errors using sequence of commands:

root@test-janus:~# apt-get update -y ; apt-get upgrade -y ; apt-get install apt-utils -y
root@test-janus:~# apt-get install -y libmicrohttpd-dev libjansson-dev libssl-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev libusrsctp1 libusrsctp-dev libcurl4-openssl-dev liblua5.3-dev libconfig-dev pkg-config gengetopt libtool automake autoconf cmake gtk-doc-tools libini-config-dev libcollection-dev autotools-dev make git doxygen graphviz ffmpeg python3-pip sudo
root@test-janus:~# mkdir janus-build
root@test-janus:~# cd janus-build
root@test-janus:~/janus-build# git clone https://libwebsockets.org/repo/libwebsockets
root@test-janus:~/janus-build# cd libwebsockets
root@test-janus:~/janus-build/libwebsockets# git checkout v3.2.0
root@test-janus:~/janus-build/libwebsockets# mkdir build
root@test-janus:~/janus-build/libwebsockets# cd build
root@test-janus:~/janus-build/libwebsockets/build# cmake -DLWS_MAX_SMP=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" ..
root@test-janus:~/janus-build/libwebsockets/build# make && sudo make install
root@test-janus:~/janus-build/libwebsockets/build# cd ../..
root@test-janus:~/janus-build# pip3 install meson ninja
root@test-janus:~/janus-build# git clone https://gitlab.freedesktop.org/libnice/libnice
root@test-janus:~/janus-build# cd libnice
root@test-janus:~/janus-build/libnice# meson --prefix=/usr build && ninja -C build && sudo ninja -C build install
root@test-janus:~/janus-build/libnice# cd ..
root@test-janus:~/janus-build# wget https://github.com/cisco/libsrtp/archive/v2.2.0.tar.gz
root@test-janus:~/janus-build# tar xfv v2.2.0.tar.gz
root@test-janus:~/janus-build# cd libsrtp-2.2.0
root@test-janus:~/janus-build/libsrtp-2.2.0# ./configure --prefix=/usr --enable-openssl
root@test-janus:~/janus-build/libsrtp-2.2.0# make shared_library && sudo make install
root@test-janus:~/janus-build/libsrtp-2.2.0# cd ..
root@test-janus:~/janus-build# git clone https://github.com/meetecho/janus-gateway.git
root@test-janus:~/janus-build# cd janus-gateway
root@test-janus:~/janus-build/janus-gateway# sh autogen.sh
root@test-janus:~/janus-build/janus-gateway# ./configure --prefix=/opt/janus
root@test-janus:~/janus-build/janus-gateway# make
root@test-janus:~/janus-build/janus-gateway# make install

root@test-janus:~/janus-build/janus-gateway# cd /opt/janus/bin
root@test-janus:/opt/janus/bin# ./janus --version
Janus commit: 16e2cc310c6081c645b63b1cc9dbb80b8d55ff26
Compiled on:  Fri 25 Jun 2021 12:25:32 PM UTC

janus 0.11.4
root@test-janus:/opt/janus/bin#

Andrei Dumitriu

unread,
Jun 25, 2021, 8:57:02 AM6/25/21
to meetecho-janus
If you add the --enable-post-processing flag to the configure script you will also need to install some extra packages with:

root@test-janus:~/janus-build/janus-gateway# apt-get install libavutil56 libavcodec58 libavformat58 libavutil-dev libavcodec-dev libavformat-dev -y
then
root@test-janus:~/janus-build/janus-gateway# ./configure --prefix=/opt/janus --enable-post-processing ; make; make install

Gaurav Rozatkar

unread,
Jun 28, 2021, 4:53:30 AM6/28/21
to meetecho-janus
Thanks a lot Brother, It's working now.
Reply all
Reply to author
Forward
0 new messages