How to install OOMMF in Linux (Ubuntu)
EDIT 1: You will need g++ to be able to compile OOMMF. If you don’t have it already, type:
“sudo apt-get install build-essential”
in the command line
EDIT 2: There is now a pre alpha 5 version available from the OOMMF website, which is the recommended version to use. The install procedure for this newer version should be essentially as it is described here. As Vimal points out in the comments below you may have to use version 1.2a5rc if you have a 64-bit machine.
Download the source of OOMMF 1.2pre alpha 4 and follow the instructions in the install guide to extract the tar.gz.
gunzip -c oommf11b2_20040115.tar.gz | tar xvf –
I moved the resulting folder to /usr/local/bin.
From the oommf root directory run
tclsh oommf.tcl +platform
The resulting errors come about because the default Ubuntu install does not have the necessary development packages for tcl and tk. From the terminal run
Install the dev packages of tcl/tk
sudo apt-get install tcl8.4-dev
sudo apt-get install tk8.4-dev
Run tclsh oomm.tcl +platform again and the problems should be sorted.
Finally complete the install process from the basic installation guide.
From your oommf directory run:
tclsh oommf.tcl pimake install