Installation of Dymola

This page describes how to install Dymola.

Use of Modelica Standard Library 3.2.3

The Dymola media download contains a directory extra with the file CompatibilityLibrariesMSL323.zip. This should include everything that is needed. If there are problems, contact your Dymola provider.

Dymola installation from rpm files

Dymola for Linux is distributed as a zip file that contains rpm files. To install these files on Ubuntu, replace the first line with the actual Dymola version and run the following commands:

# Unzip the file, for example if there is a file ${DYMVER}-linux.tar.gz, type
unzip Dymola_2021x.AM_CAT_Dymola.Linux64.1-1.zip
# Change to the directory that contains the .rpm files, such as
cd dymola-2021x/AM_CAT_Dymola.Linux64/1/linux_x86_64
# Unpack the rpm files
for ff in `ls *.rpm`; do (sudo rpm2cpio $ff | cpio -i --make-directories); done
DYMVER=dymola-2021x-x86_64
sudo chmod -R o-w opt/${DYMVER}
sudo mv opt/${DYMVER} /opt/${DYMVER}

# Dymola is now installed in /opt/$DYMVER
# We will now make it executable with a simple dymola command
sudo ln -s /opt/${DYMVER}/bin/dymola.sh /usr/local/bin/dymola

# Now move the man page to the right location (create the folder first if you get an error)
sudo mv usr/local/man/man1/dymola.1 /usr/local/share/man/man1/dymola.1

# Dymola does not ship all libraries needed on Ubuntu 18.04
# We typically copy these two files from a previous installation
# (LBL cannot distribute these files, if you don't have them, ask your Dymola provider.)
sudo cp /opt/dymola-2021x-x86_64/bin/lib64/libevent-2.0.so.5  /opt/${DYMVER}/bin/lib64/
sudo cp /opt/dymola-2021x-x86_64/bin/lib64/libxcb-xinput.so.0 /opt/${DYMVER}/bin/lib64/

Now dymola will start dymola and man dymola should show a man page.