Return to site

Install The Hdf5 Library

broken image


Install

INSTALL - Start Here. General instructions for compiling and installing the library INSTALLCMAKE - instructions for building with CMake (Kitware.com) INSTALLparallel - instructions for building and configuring Parallel HDF5 INSTALLWindows and INSTALLCygwin - MS Windows installations. The h5py package is a Pythonic interface to the HDF5 binary data format. It lets you store huge amounts of numerical data, and easily manipulate that data from NumPy. For example, you can slice into multi-terabyte datasets stored on disk, as if they were real NumPy arrays. .HDF5 library version mismatched error. The HDF5 header files used to compile this application do not match the version used by the HDF5 library to which this application is linked. Data corruption or segmentation faults may occur if the application continues. Jan 08, 2013 Make a symbolic link 'latest' to point to the latest (only, at this point) version installed: lariosadd@hydra hdf5$ sudo ln -s hdf5-1.8.13-linux-x8664-shared latest. Run the h5redeploy script to change the paths in a few scripts. Apr 20, 2021 Please login to download. Windows Note: The HDF Group uses an installer program to install the HDF5 libraries, header and support files on Windows. This installer is digitally signed by The HDF Group. Please be aware that the installer requires that the user have permission to install files on the target computer.

Library
File InfoDescription
File Size:3.0 MB
File Modification Date/Time:2020:01:17 06:53:02+00:00
File Type:Win64 DLL
MIME Type:application/octet-stream
Machine Type:AMD AMD64
Time Stamp:2019:03:11 12:24:10+00:00
PE Type:PE32+
Linker Version:14.16
Code Size:2389504
Initialized Data Size:718336
Uninitialized Data Size:0
Entry Point:0x2470f4
OS Version:6.0
Image Version:0.0
Subsystem Version:6.0
Subsystem:Windows command line

Portions of file data provided by Exiftool (Phil Harvey) distributed under the Perl Artistic License.

Install The Hdf5 Library Version

If you are a computational fluid dynamics (CFD) practitioner, at some point, you would have to use Hierarchical Data Format 5 (HDF5) and CFD General Notation System (CGNS) libraries in your programs. HDF5 format provides an advanced way of organizing any data and allows efficient access to the data. CGNS prescribes specific methods and practices to use when writing CFD simulation data into HDF5 format. You can find more info on everything about these libraries in their website. But here, I describe the way to install HDF5 & CGNS in a Ubuntu 18.04 system.

The installation procedure follows what is given in CGNS website, but with some important tweaks to get it to succeed installing in Ubuntu 18.04.

Download the CGNS source code into some directory.

Currently, this downloads CGNS 3.4.0 source code into a directory named CGNS in the present location. Although you can install HDF5 separately, and possibly a newer version from HDF5 website, I strongly advise against it. We want the CGNS library to work with our HDF5 installation. So, it is best to install the HDF5 version suggested by CGNS.

Change into the CGNS directory.

There are install scripts provided in the bin folder. Three of them in fact, one to install HDF5 (./bin/install-hdf.sh), another to configure CGNS for our system (./bin/config-cgns.sh) and the last one to install the configured CGNS (./bin/build-cgns.sh). Of course, we need to do the installation in the order I have listed.

You can choose to use the install-hdf.sh script. Some options inside that script failed for me. So, instead, use the following commands:

This will download the HDF5 v1.8 into the newly created directory hdf5_1_8. Change into this directory and use the following command:

Install hdf5 library linux

Note that I am choosing to install HDF5 in the location $HOME/hdf5, you can choose any other convenient location as well. But remember, this is the location you need to link any program trying to compile with HDF5 libraries.
The installation of HDF5 will take some time, and finally it will output the HDF5 configuration installed in the system. I have configured HDF5 to include Fortran bindings as well by the flag --enable-fortran. If you only want C binidings, you can replace that by --disable-fortran.

After this, we need to configure CGNS using the ./bin/config-cgns.sh script. The default script looks like this:

Edit it to look like this:

Apart from some specific modifications to make it work for Ubuntu, I have also specified the CGNS installation directory as $HOME/cgns. You can change this to any other convenient location. But again, this is where the built CGNS libraries and headers will be kept. You will be required to link to this location when compiling and linking programs with CGNS.
(If you have installed the HDF5 to some location other than $HOME/hdf5, you should specify that here in the flag --with-hdf5=)

Run this configure script using:

Version

This will configure the CGNS for your system.

Finally, install CGNS using:

Install The Hdf5 Library Version

That's it. You have installed HDF5 & CGNS in your Ubuntu system at $HOME/hdf5 and $HOME/cgns respectively.

Install The Hdf5 Library

INSTALL - Start Here. General instructions for compiling and installing the library INSTALLCMAKE - instructions for building with CMake (Kitware.com) INSTALLparallel - instructions for building and configuring Parallel HDF5 INSTALLWindows and INSTALLCygwin - MS Windows installations. The h5py package is a Pythonic interface to the HDF5 binary data format. It lets you store huge amounts of numerical data, and easily manipulate that data from NumPy. For example, you can slice into multi-terabyte datasets stored on disk, as if they were real NumPy arrays. .HDF5 library version mismatched error. The HDF5 header files used to compile this application do not match the version used by the HDF5 library to which this application is linked. Data corruption or segmentation faults may occur if the application continues. Jan 08, 2013 Make a symbolic link 'latest' to point to the latest (only, at this point) version installed: lariosadd@hydra hdf5$ sudo ln -s hdf5-1.8.13-linux-x8664-shared latest. Run the h5redeploy script to change the paths in a few scripts. Apr 20, 2021 Please login to download. Windows Note: The HDF Group uses an installer program to install the HDF5 libraries, header and support files on Windows. This installer is digitally signed by The HDF Group. Please be aware that the installer requires that the user have permission to install files on the target computer.

File InfoDescription
File Size:3.0 MB
File Modification Date/Time:2020:01:17 06:53:02+00:00
File Type:Win64 DLL
MIME Type:application/octet-stream
Machine Type:AMD AMD64
Time Stamp:2019:03:11 12:24:10+00:00
PE Type:PE32+
Linker Version:14.16
Code Size:2389504
Initialized Data Size:718336
Uninitialized Data Size:0
Entry Point:0x2470f4
OS Version:6.0
Image Version:0.0
Subsystem Version:6.0
Subsystem:Windows command line

Portions of file data provided by Exiftool (Phil Harvey) distributed under the Perl Artistic License.

Install The Hdf5 Library Version

If you are a computational fluid dynamics (CFD) practitioner, at some point, you would have to use Hierarchical Data Format 5 (HDF5) and CFD General Notation System (CGNS) libraries in your programs. HDF5 format provides an advanced way of organizing any data and allows efficient access to the data. CGNS prescribes specific methods and practices to use when writing CFD simulation data into HDF5 format. You can find more info on everything about these libraries in their website. But here, I describe the way to install HDF5 & CGNS in a Ubuntu 18.04 system.

The installation procedure follows what is given in CGNS website, but with some important tweaks to get it to succeed installing in Ubuntu 18.04.

Download the CGNS source code into some directory.

Currently, this downloads CGNS 3.4.0 source code into a directory named CGNS in the present location. Although you can install HDF5 separately, and possibly a newer version from HDF5 website, I strongly advise against it. We want the CGNS library to work with our HDF5 installation. So, it is best to install the HDF5 version suggested by CGNS.

Change into the CGNS directory.

There are install scripts provided in the bin folder. Three of them in fact, one to install HDF5 (./bin/install-hdf.sh), another to configure CGNS for our system (./bin/config-cgns.sh) and the last one to install the configured CGNS (./bin/build-cgns.sh). Of course, we need to do the installation in the order I have listed.

You can choose to use the install-hdf.sh script. Some options inside that script failed for me. So, instead, use the following commands:

This will download the HDF5 v1.8 into the newly created directory hdf5_1_8. Change into this directory and use the following command:

Note that I am choosing to install HDF5 in the location $HOME/hdf5, you can choose any other convenient location as well. But remember, this is the location you need to link any program trying to compile with HDF5 libraries.
The installation of HDF5 will take some time, and finally it will output the HDF5 configuration installed in the system. I have configured HDF5 to include Fortran bindings as well by the flag --enable-fortran. If you only want C binidings, you can replace that by --disable-fortran.

After this, we need to configure CGNS using the ./bin/config-cgns.sh script. The default script looks like this:

Edit it to look like this:

Apart from some specific modifications to make it work for Ubuntu, I have also specified the CGNS installation directory as $HOME/cgns. You can change this to any other convenient location. But again, this is where the built CGNS libraries and headers will be kept. You will be required to link to this location when compiling and linking programs with CGNS.
(If you have installed the HDF5 to some location other than $HOME/hdf5, you should specify that here in the flag --with-hdf5=)

Run this configure script using:

This will configure the CGNS for your system.

Finally, install CGNS using:

Install The Hdf5 Library Version

That's it. You have installed HDF5 & CGNS in your Ubuntu system at $HOME/hdf5 and $HOME/cgns respectively.

There are test codes available inside the downloaded CGNS repo at: ./CGNS/src/Test_UserGuideCode. They would have been tested during the build process as well.
If you have a program test.c which uses CGNS functions, then you would want to compile and link the program as follows:

test.out is the final executable created for the program.

Notice that we have chose not to install the utility tools for CGNS by choosing the flag --disable-cgnstools in out configure script. Enabling this fails for me. I tried to install cgnstools using various other methods as well, but it fails for me in Ubuntu 18.04.

HDFVIEW

If you want a GUI for viewing your CGNS/HDF5 files, you may want to use HDFVIEW software. Note that the hdfview available in ubuntu repositories does not work. Even the source code compilation process always fails in ubuntu. Just download the prebuilt binary for CentOS7 from the HDF website. And run the HDFView-3.1.0-Linux.sh script inside the downloaded archive to create the binary. It works properly in Ubuntu 18.04. I found this useful tip from Michael Hirsch's blog.





broken image