Installing HDF5

I'm very new to Ubuntu, like really new, but I need to install the HDF5 library. However, when I follow general steps in tutorials for installation of packages, it goes to using the config file, which I just can't find anywhere in the downloaded package.

I need to install this version of the library:

I think I should be using the static one for a 64-bit system.

I would be very grateful for any tips

3

1 Answer

To compile the exact version HDF5 1.8.10 version you need old Ubuntu version such as 14.04 LTS (now EOL).
At first enable source code deb-src repositories from Software & Updates (software-properties-gtk).

Then execute the below commands:

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get build-dep hdf5
mkdir ~/Software
cd ~/Software
wget
tar -xf hdf5-1.8.10.tar.gz
cd hdf5-1.8.10/
./configure
make -j9
sudo make install

and then try to include this library to your program. To remove the locally compiled HDF5 library visit the ~/Software/hdf5-1.8.10/ and then run sudo make uninstall here.

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like