1

我正在从这个 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 ..

cmake undefined reference to `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
4

0 回答 0