"Fatal error:hdf5.h: There is no file or directory" workaround

Source: Internet
Author: User

Question one: Installing Caffe without cuda:fatal error:cublas_v2.h No such file:

Change in Makefile.config, cpu_only: = 1 open.

Question two: "Fatal error:hdf5.h: No file or directory" workaround

Reference from http://blog.csdn.net/hongye000000/article/details/51043913

Step 1

In line 85th of the makefile.config file, add /usr/include/hdf5/serial/ to include_dirs, i.e. change the first line below to the second line of code.

INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
Step 2

In line 173th of the Makefile file, change hdf5_hl and Hdf5 to hdf5_serial_hl and hdf5_serial, That is, change the first line of code below to the second line.

LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial

"Fatal error:hdf5.h: There is no file or directory" workaround

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.