Caffe didn't see hdf5.h when compiling

后端 未结 5 1943
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 15:00

I am having trouble when installing Caffe Deep Learning Framework on Python:

When I run make command at caffe directory, it says

5条回答
  •  囚心锁ツ
    2020-12-08 15:29

    On RHEL7, I got tired of hunting for specific hdf5 RPMs and ran:

    sudo yum install *hdf5*
    

    and these are what I have:

    hdf5-openmpi3-static-1.8.12-11.el7.x86_64
    hdf5-1.8.12-11.el7.x86_64
    hdf5-openmpi-static-1.8.12-11.el7.x86_64
    hdf5-openmpi3-devel-1.8.12-11.el7.x86_64
    hdf5-openmpi3-1.8.12-11.el7.x86_64
    hdf5-mpich-devel-1.8.12-11.el7.x86_64
    hdf5-devel-1.8.12-11.el7.x86_64
    hdf5-openmpi-devel-1.8.12-11.el7.x86_64
    hdf5-mpich-static-1.8.12-11.el7.x86_64
    hdf5-mpich-1.8.12-11.el7.x86_64
    hdf5-openmpi-1.8.12-11.el7.x86_64
    

    Thanks to @loretoparisi, I was able to figure out where I had the header file I was missing and the problem went away.

    $ find /usr -iname "*hdf5.h*"
    /usr/include/openmpi-x86_64/hdf5.h
    /usr/include/hdf5.h
    /usr/include/mpich-x86_64/hdf5.h
    /usr/include/openmpi3-x86_64/hdf5.h
    

提交回复
热议问题