Building janus-gateway on Fedora Server

278 views
Skip to first unread message

Amanuel Elhanan

unread,
Jun 7, 2022, 5:49:23 PM6/7/22
to meetecho-janus
Hello
I am trying to build and install janus-gateway on Fedora Server 36. I followed the documentation to build from the source, I have installed the dependencies as specified in README.md, most of the dependencies are pre-installed on Fedora.
Finally, when I try to execute ./configure --prefix=/opt/janus I am getting the following error. 

> 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:

Package 'nice', required by 'virtual:world', not 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.
---
For example, my server does have glib which is pre-installed from the fedora repository.
> Package glib-1:1.2.10-64.fc36.x86_64 is already installed.

Can someone suggest to me things I might miss here? Thank you.

Lorenzo Miniero

unread,
Jun 8, 2022, 2:59:27 AM6/8/22
to meetecho-janus
You need the -devel packages of dependencies installed. That's evident when you look at the yum (now dnf) examples we have in the README.

L.

Amanuel Elhanan

unread,
Jun 8, 2022, 4:55:04 AM6/8/22
to meetecho-janus
Thank you for replying, unfortunately I did installed -devel packages which didnt work out. For e.g. the error shows this glib-2.0 >= 2.34, and I did tried installing glib-devel for that but when I try to build again the same thing is showing up.

> Package glib-devel-1:1.2.10-64.fc36.x86_64 is already installed.

Lorenzo Miniero

unread,
Jun 8, 2022, 5:04:04 AM6/8/22
to meetecho-janus
That's glib1, not glib2.

L.

Amanuel Elhanan

unread,
Jun 8, 2022, 6:14:41 AM6/8/22
to meetecho-janus
I am sorry that I didn't mention that, I have installed that too. I spend these 4 days trying my best to fulfill the dependencies needed. Currently, I just used docker even though it's the legacy one (0.x)
> Package glib2-devel-2.72.2-1.fc36.x86_64 is already installed.

Lorenzo Miniero

unread,
Jun 8, 2022, 6:17:26 AM6/8/22
to meetecho-janus
In your case configure is complaining about libnice, though, not glib.

L.

Amanuel Elhanan

unread,
Jun 8, 2022, 6:21:19 AM6/8/22
to meetecho-janus
I thought this is part of the error that says were not met, glib-2.0 >= 2.34.

Amanuel Elhanan

unread,
Jun 8, 2022, 6:28:29 AM6/8/22
to meetecho-janus
wow thank you so much now after I installed libnice-devel its working now without any error, I thought those messages in bracket were should be fixed first thats why I was sticking to glib.
Thank you again.

On Wednesday, June 8, 2022 at 1:17:26 PM UTC+3 lmin...@gmail.com wrote:

Charles Johnson

unread,
Jun 8, 2022, 11:21:44 AM6/8/22
to meetecho-janus
Is this the follow up to your question in github?
Here is the updated docker-compose file to which I was referring:

version: '2.1'
services:

  #
  # janus-gateway
  #
  janus-gateway:
    build: github.com/Charles92011/janus-gateway-docker
    command: ['/usr/local/bin/janus', '-F', '/usr/local/etc/janus']
    volumes:
      - '/etc/janus/jcfg:/usr/local/etc/janus'
      - '/var/log/docker:/var/log'
      - '/usr/local/share/janus/recordings/:/usr/local/share/janus/recordings/'
      - '/etc/letsencrypt/live/sub.domain.tld/fullchain.pem:/usr/local/etc/janus/fullchain.pem'
      - '/etc/letsencrypt/live/sub.domain.tld/privkey.pem:/usr/local/etc/janus/privkey.pem'
    restart: always
    network_mode: 'host'


Amanuel Elhanan

unread,
Jun 9, 2022, 12:39:05 AM6/9/22
to meetecho-janus
Thank you so much for the help, Charles.
Currently building from the source worked for me so I am going to use that. But thank you so much.
Reply all
Reply to author
Forward
0 new messages