我正在从此Caffe2安装Caffe2。当我运行cmake命令时,出现此错误:
cmake -DCUDNN_INCLUDE_DIR=~/cuda/include -DCUDNN_LIBRARY=~/cuda/lib64/libcudnn.so -DCUDA_HOST_COMPILER=/usr/bin/gcc-5 -DUSE_NNPACK=OFF -DCMAKE_PREFIX_PATH=~/anaconda3/envs/caffe2 -DCMAKE_INSTALL_PREFIX=~/anaconda3/envs/caffe2 ..
使未定义的引用指向“ pthread_create”
我正在使用:
ubuntu 18.0.4
anconda3
cmake 3.10.0
ldconfig -p | grep pthread
libpthread.so.0 (libc6,x86-64, OS ABI: Linux 3.2.0) => /lib/x86_64-linux-gnu/libpthread.so.0
libpthread.so.0 (libc6, OS ABI: Linux 3.2.0) => /lib/i386-linux-gnu/libpthread.so.0