Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

loser

macrumors newbie
Original poster
Aug 8, 2002
19
0
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
 

Sayer

macrumors 6502a
Jan 4, 2002
981
0
Austin, TX
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!)
 

loser

macrumors newbie
Original poster
Aug 8, 2002
19
0
Thanks!

looks like that solved it. Thanks for your help.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.