cisco / libsrtp

Library for SRTP (Secure Realtime Transport Protocol)
Other
1.2k stars 472 forks source link

Problem building on AWS linux 2 #527

Closed Charles92011 closed 3 years ago

Charles92011 commented 3 years ago

After install openssl11 from the AWS repo, libsrtp configure gives the error:

configure: error: Package requirements (libcrypto >= 1.0.1) were not met:
No package 'libcrypto' found

A search for libcrypto reveals these results:

/usr/lib64/.libcrypto.so.1.0.2k.hmac
/usr/lib64/.libcrypto.so.1.1.1g.hmac
/usr/lib64/.libcrypto.so.1.1.hmac
/usr/lib64/.libcrypto.so.10.hmac
/usr/lib64/libcrypto.so
/usr/lib64/libcrypto.so.1.0.2k
/usr/lib64/libcrypto.so.1.1
/usr/lib64/libcrypto.so.1.1.1g
/usr/lib64/libcrypto.so.10
/usr/lib64/pkgconfig/libcrypto11.pc
paulej commented 3 years ago

I just fired up a 64-bit image selecting the Amazon Linux image offered at the top of the launch page. I installed git, gcc and openssl-devel. I then ran configure and make. All worked fine. However, what got installed was openssl 1.02k. How did you install openssl 1.1? Amazon's Linux did not give me that option.

I have OpenSSL 1.1.1i installed on a Fedora instance and it builds just fine there. So whatever the issue is, definitely not something related to OpenSSL 1.1, per se.

Charles92011 commented 3 years ago

AWS linux has openssl 1,1,g, you have to install it with

sudo yum openssl11

I figured out how to build libsrtp by setting:

export PKG_CONFIG=/usr/bin