[asterisk-users] Can't comile bundled PJSIP on CentOS 7

A J Stiles asterisk_list at earthshod.co.uk
Tue Jan 10 03:31:22 CST 2017


On Tuesday 10 Jan 2017, Olivier wrote:
> Hello,
> 
> I'm setting up an Asterisk 13.13.1 cluster on two CentOS boxes.
> 
> I followed this:
> cd /usr/src
> wget  ... asterisk-13.13.1.tar.gz
> tar zxf asterisk-13.13.1.tar.gz
> cd asterisk-13.13.1
> ASTERISK_CONFIGURE="--libdir=/usr/lib64 --prefix=/usr"
> ./configure ${ASTERISK_CONFIGURE}  --with-pjproject-bundled
> make menuselect (shows res-srtp is available)
> make
> 
> latest make command fails with (see [1]:
> 
>    [GENERATE] libasteriskpj.exports
>    [LD] libasteriskpj.o -> libasteriskpj.so.2
> /bin/ld: cannot find -lsrtp-x86_64-unknown-linux-gnu

You probably need to install a package called something like "srtp-devel" or 
"libsrtp-devel".  (I'm not certain of the exact package name on a Fedora-like 
system, as I'm coming from Ubuntuland ;) )  Re-run the configure script after 
installing it.

Asterisk always used  (pre-10!)  to be distributed with a script called 
"install_prereq" which was meant to install all the necessary packages for a 
full install with everything, at least on a on Fedora-like or Debian-like 
distro; not sure if this is still included anymore, as it seemed a bit flaky.

-- 
AJS

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .



More information about the asterisk-users mailing list