# 1. Clone repository
git clone https://github.com/ecmwf/multio
# 2. Set up environment as appropriate
srcdir=$(pwd)
builddir=build
installdir=$HOME/local
# 3. Run Cmake/ecbuild. Note that the package is in active development and the I/O-server functionality is not enabled by default; it needs to be turned on explicitly.
ecbuild --prefix=$installdir -- -DCMAKE_PREFIX_PATH=<path/to/dependencies/install> -DENABLE_MULTIO_SERVER=ON $srcdir
# In addition, if built with FDB support, some compilers will require linking to be forced.
ecbuild --prefix=$installdir -- -DCMAKE_PREFIX_PATH=<path/to/dependencies/install>
-DENABLE_MULTIO_SERVER=ON -DECBUILD_EXE_LINKER_FLAGS=-Wl,--no-as-needed $srcdir
# 4. Compile, test and install
make -j10
ctest
make install