Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to install libhdf5-dev? (without yum, rpm nor apt-get)

I want to use h5py which needs libhdf5-dev to be installed. I installed hdf5 from the source, and thought that any options with compiling that one would offer me the developer headers, but doesn't look like it.

Anyone know how I can do this? Is there some other source i need to download? (I cant find any though)

I am on amazon linux, yum search libhdf5-dev doesn't give me any result and I cant use rpm nor apt-get there, hence I wanted to compile it myself.

like image 365
Susan D. Taylor Avatar asked Aug 30 '16 19:08

Susan D. Taylor


2 Answers

If the issue is, that you didn't find the h5py's os level development lib. It is because you have been looking/searching with the wrong package name - the one you're trying is for Ubuntu, for CentOS it's hdf5-devel.

For CentOS

sudo yum -y install hdf5-devel

For Ubuntu

sudo apt-get install libhdf5-dev

Note: above command will install hdf5 development lib version 1.8.12


Just recently I have installed h5py - with no hassle, the package versions I have installed:

numpy==1.11.2
h5py==2.6.0
like image 109
Nabeel Ahmed Avatar answered Oct 07 '22 19:10

Nabeel Ahmed


Can you use pip?

pip install h5py
like image 27
Danielle M. Avatar answered Oct 07 '22 18:10

Danielle M.