For an installation of mbdyn in ubuntu (first compile and install in /opt/mbdyn/1.6.0 (Centos compilation)
Install envrionment-modules:
apt-get install environment-modules
create the module file /usr/share/modules/modulefiles/mbdyn/1.6.0
and last don’t forget to add the following line in you .bashrc
. /etc/profile.d/modules.sh