Software Installation

MBDyn installation


MBDyn is distributed as source code. You can find the source code in the form of a tarball on MBDyn's website,, in the "Software Download" page, or download/clone it from the project's git repository,

The favourite installation method is by compiling it yourself. You can compile MBDyn


MBDyn compilation and installation is based on GNU’s autotools. You need:

(Until MBDyn 1.7.3 you also needed a Fortran compiler, which is now optional.)


Linux users:

Note: in command examples below, a `$' prefix means you can run the command as a regular user; a `#' prefix means you need to run the command as the superuser (i.e. as the user "root" or using the command "sudo" in front of the actual command). You need special permissions to do that.

Note: the software will be installed in /usr/local/mbdyn/*; to install elsewhere, configure with --prefix=/path; e.g. --prefix=/usr/local.

If you don't install the software, the main executable, "mbdyn", will be in subfolder mbdyn/. You can safely copy it wherever you want, e.g. somewhere in your path.


Note: if you plan to do some serious development, e.g. if you download the source code from the git repository, you can build it outside the source tree (recommended); in that case

From this point on, build and install continues as above. You can have multiple build trees pointing to the same source tree, for example if you need to build with different configure options.


Windows 10 users

The recommended approach is to install the Windows Subsystem for Linux. You can find instructions in Windows 10 official documentation; for example, see here:

After your Windows Subsystem for Linux is installed, follow instructions here (for Ubuntu; for other distros, package names may vary):

When you get to downloading MBDyn, you can jump to the previous general instructions about building MBDyn in Linux.


All Windows users

MBDyn has been successfully built using

Those systems are relatively outdated. The user is referred to the specific instructions to set-up the system and the build environment.

At that point, building MBDyn follows the same rules as for Linux.

As an alternative, one can find unofficial (i.e. unsupported!) binaries compiled with MSYS/MinGW here: (YMMV! Replace 1.7.3 with the desired version; beware: binaries are not available for all versions).