Skip to main content
Installing Modelica on Code Ocean

Installation through the apt-get package manager and the postInstall script.

Updated over a week ago
  1. Start a new capsule (an Ubuntu 16.04 or 18.04 base environment is best if you don't need any languages besides Modelica

  2. Run the following postInstall script:

apt-get update && apt-get install -y lsb-release gnupg
for deb in deb deb-src; do echo "$deb `lsb_release -cs` nightly"; done | tee /etc/apt/sources.list.d/openmodelica.list
curl -s | apt-key add -
apt-key fingerprint
apt update -qq && apt install -y openmodelica
apt-get purge -y --autoremove lsb-release gnupg && rm -rf /var/lib/apt/lists/*


Did this answer your question?