【问题标题】:"No such file or directory" error while installing boost on Red Hat OS在 Red Hat OS 上安装 boost 时出现“没有这样的文件或目录”错误
【发布时间】:2020-03-27 20:53:45
【问题描述】:

在使用 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>

当我检查/usr/include 时,我的帐户/机器上似乎没有安装boost! (这是一个大学集群,用户没有安装权限)。

我的问题是,考虑到这种情况,如何在 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 error-handling build caffe


    【解决方案1】:

    下载你想要的版本的boost源。 https://www.boost.org/users/download/

    使用您的主目录作为前缀配置它,如中所述 Installing Boost libraries to a custom directory in ~ (home)

    【讨论】:

      【解决方案2】:

      虽然 tomgalpin 的回答似乎完全正确,但我只是提供命令摘要:

      here 下载最新的 boost 包或直接在终端中获取:

      $ wget https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.gz
      

      关注这个link:

      $ cd path/to/boost_1_72_0 # or your own version
      $ ./bootstrap.sh --prefix=path/to/custom_folder
      $ /b2 install --prefix=path/to/custom_folder
      

      完成后,$ cd path/to/custom_folder$ ls 将显示在 custom_folder 中创建的 includelib 文件夹

      【讨论】:

        猜你喜欢
        • 2010-12-18
        • 2020-04-07
        • 1970-01-01
        • 1970-01-01
        • 2018-10-01
        • 1970-01-01
        • 2019-11-29
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多