Installation of MED on Linux

The MED format is built on top of HDF5 and as such, requires the HDF5 library and tools.

If you have sudo rights, you can install HDF5 using your OS package manager, such as apt in the case of Debian-like distros:

sudo apt install libhdf5-dev hdf5-tools


After installing HDF5, you can download the MED sources from here here
Uncompress them and run the following commands from the uncompressed folder:

./configure CFLAGS=-O2 CXXFLAGS=-O2 FFLAGS=-O2 --disable-python
make
sudo make install


If HDF5 is not installed using your package manager, you need to replace:

./configure

with

./configure --with-hdf5=<path-to-hdf5>

Where <path-to-hdf5> is the path to your HDF5 installation.

If you want to specify where to install the MED library (required if you don't have sudo rights), replace:

./configure

with

./configure --prefix=<install-path>


Where <install-path> is the path where you want to install the MED library.
This folder must not be the one containing the sources.

installation_linux_med.txt · Last modified: 2022/11/29 15:50 by b.basic