Installation of Dymola on Linux Ubuntu 64 bit

This page describes how to install Dymola on Linux Ubuntu 64-bit and adjust the colors of the tool tips. The installation was done for Ubuntu 14.04, but most steps should also apply to other versions.

Installation from rpm files

Dymola for Linux is distributed as a tar 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:

# Change DYMVER to the version you are installing
DYMVER=dymola-2016-x86_64
# Unzip or untar the file, for example if there is a file ${DYMVER}-linux.tar.gz, type
tar xzf ${DYMVER}-linux.tar.gz
# Unpack the rpm files
cd ${DYMVER}-linux
for ff in `ls *.rpm`; do (sudo rpm2cpio $ff | cpio -i --make-directories); done
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

Now dymola will start your last dymola version and man dymola should show a man page.

Ubuntu 16.04

The Dymola 2017 license file looks for a network interface name eth0, but this was renamed to ens33 in Ubuntu 16.04. It can be changed back to eth0 as described here or here. In our case, creating the file below and rebooting worked:

$ cat /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth0", NAME="eth0"

The 64 bit dymola version in bin64/dymola requires the following packages to be installed:

sudo apt-get install libqt5x11extras5 libqt5script5

as can be tested by running ldd bin64/dymola | grep "not found".

Ubuntu 14.04

32 bit support

You may need to install rpm2cpio to unpack the Dymola rpms, and libc6-dev-i386 and g++-multilib to compile models. You can do so by running

sudo apt-get install rpm2cpio libc6-dev-i386 g++-multilib

If the compilation fails and dslog.txt contains the line

/usr/bin/ld: cannot find -lstdc++

then try to add the following to the dymola/bin/lib directory:

sudo apt-get install lib32stdc++6
sudo ln -s /usr/lib32/libstdc++.so.6 /opt/dymola/bin/lib/libstdc++.so

Dymola 2016 FD01

Dymola 2016 FD01 links to libraries that are provided gcc 4.9, but Ubuntu 14.04 provides gcc 4.8. gcc 4.9 can be installed from the Ubuntu Toolchain test builds (see https://wiki.ubuntu.com/ToolChain) using

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.9

Tool tips color

Dymola has tool tips that appear for example if the cursor is above a port in the schematic editor. If they happen to appear in white fonts on a yellow background, you can change the white fonts to black fonts by typing

sudo gedit /usr/share/themes/Ambiance/gtk-2.0/gtkrc

Then, change near the top of the file the entry

tooltip_fg_color:#ffffff

to

tooltip_fg_color:#000000

Save the file and restart Dymola.