在Linux Mint上安装Caffe:/ usr / bin / ld:找不到-lhdf5_hl

时间:2017-10-16 00:38:16

标签: linux caffe pycaffe mint

每当我尝试在我的linux薄荷机上安装caffe时,我都会这样做:

def draw_histogram(histogram_dict):
    for key in histogram_dict:
        if histogram_dict[key] >= 1:
           print (key + ": " + histogram_dict[key]*"*")

你们有谁知道我可能做错了什么吗?谢谢你的回复。

1 个答案:

答案 0 :(得分:0)

如果使用make + Makefile.config构建caffe,请添加libhdf5.so的位置(可以通过locate libhdf5.so检索),例如 /usr/lib/x86_64-linux-gnu/hdf5/serialLIBRARY_DIRS变量。

如果您使用基于cmake的构建,请将此路径添加到LD_LIBRARY_PATH并运行ldconfig:

export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/hdf5/serial:$LD_LIBRARY_PATH
sudo ldconfig
相关问题