在具有Red Hat OS的SLURM集群上安装caffe
时,出现以下错误:
compilation terminated.
make: *** [.build_release/cuda/src/caffe/layers/clip_layer.o] Error 1
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/layers/concat_layer.hpp:6,
from src/caffe/layers/concat_layer.cu:3:
./include/caffe/common.hpp:4:32: fatal error: boost/shared_ptr.hpp: No such file or directory
#include <boost/shared_ptr.hpp>
在检查
boost
时,我的帐户/机器上似乎没有安装/usr/include
! (这是一个大学集群,用户没有安装特权)。我的问题是考虑到这种情况,如何在Red Hat OS上安装
boost
?$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 440.64.00 Wed Feb 26 16:26:08 UTC 2020
GCC version: gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
最佳答案
下载所需版本的Boost的来源。
https://www.boost.org/users/download/
使用主目录作为前缀配置它,如中所述
Installing Boost libraries to a custom directory in ~ (home)
关于boost - 在Red Hat OS上安装boost时“No such file or directory”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60863526/