【问题标题】:Caffe install issues, remote server, ld cannot find -<package>Caffe 安装问题,远程服务器,ld 找不到 -<package>
【发布时间】:2016-09-19 04:24:18
【问题描述】:

我在安装 caffe 时遇到问题。

我的系统设置可能不正确,因为我必须在 Makefile.config 文件中手动包含许多库。这是一个共享服务器集群,我没有 sudo 权限。

当前错误:

/opt/gnu/bin/ld: cannot find -lhdf5_hl
/opt/gnu/bin/ld: cannot find -lhdf5
/opt/gnu/bin/ld: cannot find -lopencv_core
/opt/gnu/bin/ld: cannot find -lopencv_highgui
/opt/gnu/bin/ld: cannot find -lopencv_imgproc
/opt/gnu/bin/ld: cannot find -lboost_thread
/opt/gnu/bin/ld: cannot find -lcblas
/opt/gnu/bin/ld: cannot find -latlas

我无法找到这些文件环顾四周。系统通过“模块”使用环境模块。

这些是我当前包含在 Makefile.config 中的内容:

INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /opt/glog/include /opt/atlas/intel/include /opt/hdf5/intel/openmpi_ib/include /opt//openmpi/intel/ib/include/ /opt/opencv/include/
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /opt/glog/lib

当前加载的模块文件: 1) 英特尔/2013_sp1.2.144 3) gnutools/2.69 5) hdf5/1.8.14 2) mvapich2_ib/2.1 4) atlas/3.10.2 6) openmpi_ib/1.8.4

我想知道是否有人有建议?我很迷茫。

编辑:我切换到 MKL,但仍然遇到这些问题。

【问题讨论】:

    标签: c++ linux opencv gcc caffe


    【解决方案1】:

    附加 LD_LIBRARY_PATH

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/d/runtime/opencv-2.4.10/lib

    注意':',因为不同的路径用':'隔开。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-04-21
      • 2014-03-19
      • 2017-03-01
      • 1970-01-01
      • 2011-03-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多