boost - 在Red Hat OS上安装boost时“No such file or directory”错误

标签 boost error-handling build caffe

在具有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/

相关文章:

python - 我认为这应该引发错误,但事实并非如此

sql - TSQL错误检查代码不起作用

android - react native - webview 在构建发布 apk 时不呈现本地 html

performance - 在TeamCity中进行多次并行构建后触发一次后续构建

c++ - Boost Geometry:计算 vector 差

c++ - 如何使用 boost::log::BOOST_TRIVIAL_LOG 更改默认格式?

c++ - Boost Container vector 可以通过非原始指针管理内存吗?

c# - 解决方案之间的记录错误

asp.net - MVC 应用程序构建速度极慢

c++ - 指向嵌套结构中成员变量的指针