Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: hdf5.h: No such file or directory #28

Closed
bromrector opened this issue Jul 14, 2016 · 4 comments
Closed

fatal error: hdf5.h: No such file or directory #28

bromrector opened this issue Jul 14, 2016 · 4 comments

Comments

@bromrector
Copy link

// #include "hdf5.h"

Any ideas?

@ghost
Copy link

ghost commented Dec 15, 2016

@bromrector found a fix? Still getting the error when building in a docker image even after installing libhdf5-dev libhdf5-serial-dev(debian).

@sbinet
Copy link
Owner

sbinet commented Dec 15, 2016

could you share that Dockerfile? (possibly filing a new issue)

@ghost
Copy link

ghost commented Dec 15, 2016

FROM golang:1.7.3

RUN go get github.com/tools/godep && apt-get update -y && apt-get install -y libhdf5-dev libhdf5-serial-dev

RUN mkdir -p $GOPATH/src/github.com/org/hdf/
WORKDIR $GOPATH/src/github.com/org/hdf/

COPY ./Godeps Godeps
COPY ./vendor vendor

RUN /go/bin/godep restore

COPY ./ ./

RUN go get -v ./...

Looks like this could be a debian 8 related issue?

@ghost
Copy link

ghost commented Dec 15, 2016

Worked after adding:

ENV CGO_CFLAGS="-I/usr/lib/x86_64-linux-gnu/hdf5/serial/include"
ENV LIBRARY_PATH /usr/lib/x86_64-linux-gnu/hdf5/serial/

@ghost ghost mentioned this issue Dec 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants