欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

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

发布时间:2025/4/16 47 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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

~微信打赏~

分享到:

总结

以上是生活随笔为你收集整理的linux编译openssl报错,alpine编译openssl1.1.1g报错解决的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。