51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

alpine编译openssl1.1.1g报错解决

完整报错内容如下:

crypto/mem_sec.c:33:13: fatal error: linux/mman.h: No such file or directory
33 | # include <linux/mman.h>
| ^~~~~~~~~~~~~~
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 | apk add linux-headers |

赞(0)
未经允许不得转载:工具盒子 » alpine编译openssl1.1.1g报错解决