我正在尝试安装暗网(按照https://pjreddie.com/darknet/install/)
我跑了:
git clone https://github.com/pjreddie/darknet.git
make
出现以下错误:
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
In file included from ./src/utils.h:5,
from ./src/gemm.c:2:
include/darknet.h:6:10: fatal error: pthread.h: No such file or directory
#include <pthread.h>
^~~~~~~~~~~
compilation terminated.
Makefile:89: recipe for target 'obj/gemm.o' failed
mingw32-make.exe: *** [obj/gemm.o] Error 1
答案1
我收到了相同的错误消息,我通过安装 pthread 包修复了它,见图片。