Installing OOMMF on Ubuntu 11.04

By | June 2, 2012

How to install OOMMF in Linux (Ubuntu)

I have just installed OOMMF on Ubuntu 11.04. Not all of the steps I carried out were in the basic installation guide, so I am putting them here:

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 OOMMF

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.

Compile OOMMF

Finally complete the install process from the basic installation guide.

From your oommf directory run:
tclsh oommf.tcl pimake install
tclsh oommf.tcl