using lam in os x

Discussion in 'Mac Programming' started by loser, Sep 30, 2006.

  1. loser macrumors newbie

    Joined:
    Aug 8, 2002
    #1
    I'm trying to figure out how to use lam on my macbook. I've installed it (lam 7.1.2), but don't know how to get it to work. I thought it would work like it does in linux where you boot it with 'lamboot', use 'mpicc' to compile, and 'mpirun' to execute. But none of these commands work. (I get a 'command not found' error)

    I am taking a mpi course and was hoping to find a way to compile and run my code without logging in to the school's system, uploading my programs, writing a shell script to execute and waiting just to find out I left out a semicolon somewhere.

    Anyone have any ideas on what I need to do to make this work, or other ways to compile and run mpi code on my macbook?

    Thanks
     
  2. Sayer macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #2
    You probably didn't set your shell to look in /usr/local/* for the lam executables.

    Just open the terminal and type this:

    Code:
    echo export PATH="/usr/local/bin:/usr/local/sbin:$PATH" >> ~/.bash_login
    Close, reopen a terminal window and off you go! (Or not!)
     
  3. loser thread starter macrumors newbie

    Joined:
    Aug 8, 2002
    #3
    Thanks!

    looks like that solved it. Thanks for your help.
     

Share This Page