Mac: Installing OOMMF on Mac OS X Snow Leopard 10.6

Mac OS have TCL/TK already installed.
So it is very easy to install OOMMF(Object Oriented MicroMagnetic Framework)

The following steps installs OOMMF at directory ~/apps/oommf12a4pre-20091216

First you need to download the oommf SOURCE code.
Here is the link to download 1.2a4pre snapshots : http://math.nist.gov/~MDonahue/misc/oommf12a4pre-20091216.tar.gz

Once you have downloaded untar to ~/apps/ using the following command in the terminal.
gunzip -c oommf12a4_20040908.tar.gz | tar xvf -

To Install:
Open Terminal and goto to the folder where you untarred.
 $ cd ~/apps/oommf12a4pre-20091216  
Run the following 2 commands
 $ tclsh oommf.tcl +platform
The above command prints summary of your platform configuration. Make sure all the config files are located and listed. Example output will be like the following
 oommf.tcl 1.2.0.4 info:  
 OOMMF release 1.2.0.4, snapshot 2009.12.16  
 Platform Name:          darwin  
 Tcl name for OS:     Darwin 10.7.0  
 C++ compiler:          /usr/bin/g++   
 Tcl configuration file:     /usr/lib/tclConfig.sh  
 tclsh:               /usr/bin/tclsh8.5  
 Tcl release:          8.5.7 (config)     8.5.7 (running)  
 Tk configuration file:     /usr/lib/tkConfig.sh  
 wish:               /usr/bin/wish8.5  
 Tk release:          8.5.7 (config)     8.5.7 (running)  
 Tcl threads:          Yes  
 OOMMF threads:          Yes  
  Default thread count:     2  
Now you have all the configurations good, to compile and build run the following command
 $ tclsh oommf.tcl pimake  
The above command runs for a while. If there is an error, it prints the error on the console.
To launch the application
 $ tclsh oommf.tcl  

Comments

  1. When a go to launch mmDisp , the following error occurs:


    oommf.tcl 1.2.0.4 Oc_Application panic:
    Can't find application satisfying 'mmDisp'
    for platform 'darwin':
    The following candidates were rejected:
    /Applications/oommf12a4pre-20091216/app/mmdisp/scripts/mmdisp.tcl: needs shell or platform 'mmDispSh'


    Available applications for platform 'darwin':
    any2ppm 1.2.0.4
    batchmaster 1.2.0.4
    batchslave 1.2.0.4
    batchsolve 1.2.0.4
    Boxsi 1.2.0.4
    crc32 1.2.0.4
    FileSource 1.2.0.4
    killoommf 1.2.0.4
    launchhost 1.2.0.4
    mag2hfield 1.2.0.4
    MIFConvert 1.2.0.4
    mmArchive 1.2.0.4
    mmDataTable 1.2.0.4
    mmGraph 1.2.0.4
    mmHelp 1.2.0.4
    mmLaunch 1.2.0.4
    mmProbEd 1.2.0.4
    mmSolve2D 1.2.0.4
    odtcat 1.2.0.4
    odtcols 1.2.0.4
    Oxsii 1.2.0.4
    pidinfo 1.2.0.4
    pimake 1.2.0.4


    What do I need to do?
    I have installed oommf in mac.

    ReplyDelete
  2. Hello,
    There are 2 options:
    1. Reinstall oommf, using the following 2 commands:

    $ tclsh oommf.tcl pimake distclean

    $ tclsh oommf.tcl pimake

    2. There might be some oommf threads still running from the prev execution. So, kill all the oommf threads and RE-LAUNCH the app.
    To kill, use the 'ps' command to see the running threads and use 'kill' command to kill the process'es
    If you are not comfortable with these commands, simply restart your MAC and LAUNCH the oommf app again.

    Thanks.

    ReplyDelete
  3. Hello,

    I am getting an error when I try to launch oommf from the command line that reads:


    oommf.tcl 1.2.0.4 Oc_Application panic:
    Can't find application satisfying 'mmLaunch'
    for platform 'darwin':
    The following candidates were rejected:
    /Applications/oommf12a4pre-20091216/app/mmlaunch/mmlaunch.tcl: needs shell or platform 'omfsh'


    Available applications for platform 'darwin':
    MIFConvert 1.2.0.4
    odtcat 1.2.0.4
    odtcols 1.2.0.4
    pimake 1.2.0.4

    I should also mention that an error proceeds this step when trying to compile and build, which is as follows:

    pimake 1.2.0.4 error:
    couldn't execute "g++": no such file or directory
    1 Error(s) detected
    ----------- 2012-Dec-04 15:36:53
    Stack:
    couldn't execute "g++": no such file or directory
    while executing
    "Platform Compile C++ -opt 1 -inc [[CSourceFile New _ varinfo.cc] DepPath] -out varinfo -src varinfo.cc "


    Thank you for your help

    ReplyDelete
    Replies
    1. Hello,
      You might have to install C/C++ compiler.
      The following error says that either C/C++ is not installed or not in your path.
      --couldn't execute "g++": no such file or directory

      Delete
    2. Aah, thanks very much!

      Delete
  4. Hi there,

    First of all thanks for these information. Can you tell me what do you mean by this sentences or can you explain more for me please " Once you have downloaded untar to ~/apps/ using the following command in the terminal.
    gunzip -c oommf12a4_20040908.tar.gz | tar xvf -"

    Kind

    ReplyDelete
  5. Hello, thanks for your post!

    I've already installed OOMMF and can open the mmLaunch window, but when I click the localhost box, though a menu of user account window appears, there's no box next to the window which I can click on. and the whole thing just stuck there.

    besides, after the "tclsh oommf.tcl pimake " command, it shows:
    "warning: unknown warning option '-Wno-non-template-friend'; did you mean '-Wno-unsupported-friend'? [-Wunknown-warning-option]"

    is there any connection between these 2 problems?

    anyone there facing the same problem? BTW, my system is 10.9.5. hope someone can help on this.

    Thanks a lot!

    ReplyDelete

Post a Comment

Popular posts from this blog

cakePHP: Passing multiple parameters from view to controller in cakePHP

PHP: exec command not working; sh: command not found