Below are the fixes to most common problems encountered with MPDRoot dependencies. If the solutions below do not work, please email to our Service Desk (don’t forget to follow the instructions)

CVMFS

when loading modules you get this (or similar) error

$ module add mpddev
utility.c(2245):ERROR:50: Cannot open file
'/cvmfs/nica.jinr.ru/sw/MODULES/slc7_x86-64/mpddev/latest' for 'reading'
ModuleCmd_Load.c(213):ERROR:105: Unable to locate a modulefile for 'mpddev'

This is very likely a caching error in cvmfs. You have to reinstall cvmfs (don’t worry, it is easy). Reboot and in your $HOME do: 

rm -f ./cvmfs_install
wget -O cvmfs_install https://git.jinr.ru/nica/nicadist/-/raw/master/scripts/cvmfs_install
chmod +x cvmfs_install
./cvmfs_install reset
systemctl enable --now cvmfs

Make sure your /etc/cvmfs/default.local looks the same as this one:

https://git.jinr.ru/nica/nicadist/-/blob/master/scripts/default.local.nica

BUILD

After any small update the linking (unrelated to your changes) in build sometimes suddenly breaks, you can for example see output similar to:

In file included from 
/home/user/mpdroot/simulation/generators/mpdGeneralGenerator/MpdGeneralGenerator.h:17:10:
fatal error: FairGenerator.h: No such file or directory
17 | #include "FairGenerator.h"
| ^~~~~~~~~~~~~~~~~

This behavior is related to CMake and is fixed by full rebuild:

rm -rf build/ $MPDROOT
mkdir build && cd build && cmake ..
make -j8 install
Categories: Posts