Search code examples
pythonlinuxinstallationhdf5

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.


Solution

  • 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