Instructions updated 2011-08-10
If you can't use deb packages at all, we recommended installing OpenModelica from source.
We provide .deb packages compiled on Debian Squeeze and Ubuntu 10.10. Source packages are also provided if your distribution is too old for the binary packages.
Add one of the following lines to the /etc/apt/sources.list (or use your favorite GUI-based tool). The nightly build is generated automatically from subversion sources; it will usually be working properly (status of the nightly builds). The stable build is updated whenever a new feature has been introduced, or a user-submitted bug has been fixed, and the tests are working. The release builds are marked only for the release candidates and release builds.
# Qt 4.6 (Debian Stable as well as Ubuntu 10.04+) deb http://build.openmodelica.org/apt release contrib deb http://build.openmodelica.org/apt stable contrib deb http://build.openmodelica.org/apt nightly contrib # Qt 4.7 (Ubuntu 10.10+, for stable releases use the Qt 4.6 packages) deb http://build.openmodelica.org/apt nightly-ubuntu contrib
You will also need to import the GPG key used to sign the releases:
wget -q http://build.openmodelica.org/apt/openmodelica.asc -O- | sudo apt-key add -
# To verify that your key is installed correctly
apt-key fingerprint
pub 2048R/64970947 2010-06-22
Key fingerprint = D229 AF1C E5AE D74E 5F59 DF30 3A59 B536 6497 0947
uid OpenModelica Build System
If you want to be able to download source packages, add the following line to sources.list.
deb-src http://build.openmodelica.org/apt nightly contrib
Then update and install OpenModelica
sudo apt-get update
sudo apt-get install openmodelica
If your platform is too old for the pre-built packages, you can install them from the source repository.
sudo apt-get install devscripts debhelper
mkdir ~/tmp
cd ~/tmp
sudo apt-get build-dep openmodelica
apt-get -b source openmodelica
sudo dpkg -i *.deb
Note 1: libCoin / libSoQt is not linked against in all builds due to incompatibilities with different versions of these libraries. If you need 3D visualizations, there are better options available.
Note 2: Ubuntu 10.04 has problems with installing omshell-terminal due to compatibility issues with Debian stable. You can still install the packages individually instead (for example sudo apt-get install omc omedit).
If you have any questions about the installation, feel free to ask either Martin or the forums.