can't install libnice

552 views
Skip to first unread message

Giuseppe

unread,
Mar 12, 2020, 3:49:27 PM3/12/20
to meetecho-janus
Hi I'm not able to install libnice on Ubuntu 18 anyone could please help me figure  out what I' m doing wrong
here the steps I followed

from root:

apt remove libnice-dev to remove the release 14
and infact if I run 
dpkg -l | grep nice   
it founds nothing 
or even 
apt list --installed 
it's no more listed

cd etc
cd libnice
./autogen.sh
./configure --prefix=/usr
make && sudo make install

as per the readme 
apparently with no errors
but if I run

dpkg -l | grep nice   
it founds nothing 
or even 
apt list --installed 
it founds nothing

and starting janus I receive the error that I need to upgrade libnice to at least version 0.1.15

 What I'm missing?
Thanks

Mirko Brankovic

unread,
Mar 12, 2020, 4:41:00 PM3/12/20
to meetecho-janus
I had a problem with missing dependency for libice master, so i checked out 0.1.15

But generally libs that you install with maje will not be seen by package manager like apt, dpkg,..
You can replace make install with checkinstall tool to generate .deb package, and then install it with dpkg

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/06b33feb-4ccd-432e-886e-85ba83c648d6%40googlegroups.com.

Giuseppe

unread,
Mar 12, 2020, 5:00:31 PM3/12/20
to meetecho-janus
Thanks Mirko I will give it a try as soon as possible.

Giuseppe

unread,
Mar 13, 2020, 7:52:49 AM3/13/20
to meetecho-janus
Hi maybe I found out what is the problem ,I'm working on it.

From libnice readme I read

Requirements ------------ glib >= 2.54 pkg-config gnutls >= 2.12.0 or OpenSSL gupnp-igd >= 0.1.2 (optional) gstreamer-0.10 >= 0.10.0 (optional) gstreamer-1.0 (optional)

while I have on my system (ubuntu installed as windows linux subsystem) glib 2.0

now I'm trying to install glib in the required version.

In progress...



Il giorno giovedì 12 marzo 2020 20:49:27 UTC+1, Giuseppe ha scritto:

Daebak Cafe

unread,
Mar 13, 2020, 10:27:32 AM3/13/20
to meetecho-janus
When installing libnice from sources it won't show in the debian package listing. I use Ubuntu 18.04 as well and i removed the libnice packages shipped by Ubuntu and installed libnice from sources:

15:19:29 root@janus5vm ~ # dpkg -l | grep libnice
15:19:38 root@janus5vm ~ # ldconfig -p | grep libnice
212:    libnice.so.10 (libc6,x86-64) => /usr/lib/libnice.so.10
213:    libnice.so (libc6,x86-64) => /usr/lib/libnice.so

Janus detected the manually installed libs just fine and it is using them. If i inspect the running janus process i can see it:
15:25:54 root@janus5vm ~/janus/janus-gateway # lsof -p 18655 | grep nice
63:janus   18655 root  mem       REG                8,2  1488680 1327574 /usr/lib/libnice.so.10.9.0

Giuseppe

unread,
Mar 13, 2020, 10:57:55 AM3/13/20
to meetecho-janus
Hi Daebak cafe may I ask you to check which version of glib you have installed in your system?Thanks.

Giuseppe

unread,
Mar 13, 2020, 11:06:08 AM3/13/20
to meetecho-janus
If I run  ldconfig -p | grep libnice I see this output

        libnice.so.10 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libnice.so.10
        libnice.so.10 (libc6,x86-64) => /usr/lib/libnice.so.10
        libnice.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libnice.so
        libnice.so (libc6,x86-64) => /usr/lib/libnice.so

but I still running janus he gives me the error that I need to update libnice to 0.1.15

Daebak Cafe

unread,
Mar 13, 2020, 12:38:40 PM3/13/20
to meetecho-janus
The one shipped with Ubuntu 18:

17:37:20 root@janus5vm ~ # aptitude show libglib2.0-bin
Package: libglib2.0-bin
Version: 2.56.4-0ubuntu0.18.04.4
State: installed
Automatically installed: yes
Multi-Arch: foreign
Priority: optional
Section: misc
Maintainer: Ubuntu Developers <ubuntu-dev...@lists.ubuntu.com>
Architecture: amd64
Uncompressed Size: 284 k
Depends: libc6 (>= 2.4), libelf1 (>= 0.142), libglib2.0-0 (= 2.56.4-0ubuntu0.18.04.4), libglib2.0-data

Giuseppe

unread,
Mar 13, 2020, 1:37:39 PM3/13/20
to meetecho-janus
Ok thanks ,anyway I'm realizing that this is just a warn
[WARN] libnice version outdated: 0.1.14 installed, at least 0.1.15 recommended
even if running ./janus -F /opt/janus/etc/janus/  stops to this line ,
maybe I need a fresh installation, I don't know...
The current installation is in ubuntu linux subsystem for win 10
Reply all
Reply to author
Forward
0 new messages