安装rtmpdump,提示openssl没安装

Teomc.Xbc 发布于 2017/08/07 10:26
阅读 298
收藏 0

最近在用openresty开发基于RTMP协议的流媒体业务,想装一个RTMPdump玩玩,但我的OS明明已经装了openssl,但在编译rtmpdump的时候仍然提示找不到openssl相关的库

make[1]: Entering directory `/home/xbc/rtmpdump-2.3/librtmp'
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC   -c -o rtmp.o rtmp.c
rtmp.c:40:25: error: openssl/ssl.h: No such file or directory
rtmp.c:41:25: error: openssl/rc4.h: No such file or directory
rtmp.c:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from rtmp.c:126:
handshake.h:63:25: error: openssl/sha.h: No such file or directory
handshake.h:64:26: error: openssl/hmac.h: No such file or directory
handshake.h:67:2: error: #error Your OpenSSL is too old, need 0.9.8 or newer with SHA256
In file included from rtmp.c:126:
handshake.h:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘

 

 

root@test ~]# whereis openssl
openssl: /usr/bin/openssl.OFF /usr/bin/openssl /usr/lib64/openssl /usr/include/openssl.OFF /usr/include/openssl /usr/share/man/man1/openssl.1ssl.gz

 

 

 

加载中
0
JIANGGuo
JIANGGuo

/usr/include下没有" openssl/ssl.h "这个文件?

JIANGGuo
JIANGGuo
回复 @Teomc.Xbc : /usr/local/include下也没有?
T
Teomc.Xbc
没有,找不到的原因应该就是这个吧,但为什么会没有呢?我明明安装了openssl的,不然openresty也不可能起来
返回顶部
顶部