linux编译openssl报错,alpine编译openssl1.1.1g报错解决

完整报错内容如下:

crypto/mem_sec.c:33:13: fatal error: linux/mman.h: No such file or directory

33 | # include

| ^~~~~~~~~~~~~~

compilation terminated.

make[3]: *** [Makefile:3993: crypto/mem_sec.o] Error 1

make[3]: *** Waiting for unfinished jobs....

make[3]: Leaving directory '/openssl-1.1.1d'

make[2]: *** [Makefile:174: all] Error 2

make[2]: Leaving directory '/openssl-1.1.1d'

make[1]: *** [objs/Makefile:1332: openssl-1.1.1d/.openssl/include/openssl/ssl.h] Error 2

make[1]: Leaving directory '/nginx-1.18.0'

make: *** [Makefile:8: build] Error 2

解决办法:

apk add linux-headers

1

apkaddlinux-headers

4a18ecff2246c7a12593d607469add98.gif

~微信打赏~

分享到:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值