Installation : libsrtp and libsrtp2 not found

1,562 views
Skip to first unread message

Mehdi Verfaillie

unread,
Jun 9, 2020, 1:10:36 PM6/9/20
to meetecho-janus
Hello and thank you for the time you will devote to this post.

I find myself annoyed by this error after running the last command on this follwing gist:
configure: error: libsrtp and libsrtp2 not found. See README.md for installation instructions

I have read the instructions at this address: https://janus.conf.meetecho.com/docs/README.html 

Here are the steps I performed after creating an EC2 instance on Ubuntu 18.04 : https://gist.github.com/Mehdi-Verfaillie/778e331ae59bccd1a90ddfe62a92757a

When I run this commands : 
whereis libsrtp2 libsrtp

I got the following path :
libsrtp2: /usr/lib64/libsrtp2.so
libsrtp
: /usr/lib/x86_64-linux-gnu/libsrtp.so /usr/lib/x86_64-linux-gnu/libsrtp.a /usr/lib64/libsrtp2.so


Did I make a silly mistake?
Thank you for your help and for your work on Janus.

Mirko Brankovic

unread,
Jun 9, 2020, 1:20:48 PM6/9/20
to meetecho-janus
First of all don't install libsrtp-dev and compile libsrtp2.2 from source. Choose one of those steps.
If you distro has <1.5 version then you need to build it from source.

Hope it helps

--
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/a6eb10fc-1758-4ee8-8d83-4f18add6a600o%40googlegroups.com.


--
Regards,
Mirko

Brian Koblenz

unread,
Jun 9, 2020, 1:25:33 PM6/9/20
to Mehdi Verfaillie, meetecho-janus
Also, you reference libdir in your config line (which is NOT) part of the readme.  I build srtp locally and things are fine.



--

Mirko Brankovic

unread,
Jun 9, 2020, 1:43:20 PM6/9/20
to Brian Koblenz, Mehdi Verfaillie, meetecho-janus
I use checkinstall instead of make install, and checkinstall spits out .deb which you can install or upload to your repo, thou result should be the same.
But i guess newer distros habe proper libsrtp version, I'll see to drop that part and just install official ones

Mehdi Verfaillie

unread,
Jun 9, 2020, 3:14:44 PM6/9/20
to meetecho-janus
Thank you for your answers.

@Mirko Brankovic 
So, I have re-deploy a new EC2 instance on ubuntu 18.04 by choosing not to install libsrtp-dev (and only libsrtp2.2) but I always arrive at the same result.
Maybe I am wrong, but I do not have the impression that libsrtp is pre-installed on my instance. At least I didn't find it..
A question, when you say: "build it from source" is it about not going through aptitude for installation?

@Brian Koblenz
If you talk about the flag
--libdir=/usr/lib64

, I use it because in the readme asks to use it if I use an x86_64 distribution.
Did I do it the wrong way?
Also, how do you build srtp locally ? (noob question)

Thanks a lot guys! 

Mirko Brankovic

unread,
Jun 9, 2020, 3:20:29 PM6/9/20
to meetecho-janus
Yeah, since you git checkout and make from sources.
Strange, i have tried on 16.04 and debian10 and didn't have this problem

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

Mirko Brankovic

unread,
Jun 9, 2020, 3:21:32 PM6/9/20
to meetecho-janus
No i also followed docs from github readme

Brian Koblenz

unread,
Jun 9, 2020, 3:24:33 PM6/9/20
to Mehdi Verfaillie, meetecho-janus
Look at ur log. 
After you cd libsrtp2.2.0
You ./configure with a reference to a system library location. That is not what it says in the README, so go back to that step and try again

On Jun 9, 2020, at 12:14 PM, Mehdi Verfaillie <mehdi.ve...@gmail.com> wrote:


--

Mehdi Verfaillie

unread,
Jun 9, 2020, 3:49:15 PM6/9/20
to meetecho-janus
@Brian Koblenz
Ok! You was right. It works now that I have removed
--libdir=/usr/lib64
when I ./configure.

I believe I was confused with this

Capture d’écran 2020-06-09 à 21.45.21.png




I thought I should use it after the ./configure as when installing usrsctp

Umut PAMUK

unread,
Aug 27, 2021, 3:20:07 PM8/27/21
to meetecho-janus
hi friends,
# whereis libsrtp2 libsrtp
libsrtp2: /usr/lib/libsrtp2.so /usr/local/lib/libsrtp2.so
libsrtp: /usr/lib/libsrtp2.so /usr/lib64/libsrtp.so /usr/local/lib/libsrtp2.so

Libsrtpe is installed and gives the path like this. But I run ./configure --prefix=/opt/janus
checking for LIBSRTP... no
checking for LIBSRTP... no
configure: error: libsrtp and libsrtp2 not found. See README.md for installation instructions

I am getting the error. I saw the same error on this issue, but I couldn't solve it. Will you help?
Thanks.

9 Haziran 2020 Salı tarihinde saat 22:49:15 UTC+3 itibarıyla Pondia şunları yazdı:
Reply all
Reply to author
Forward
0 new messages