CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Problem when installing Openfoam 2.0.x with mac (http://www.cfd-online.com/Forums/openfoam-installation/99040-problem-when-installing-openfoam-2-0-x-mac.html)

giovaniharyadi March 24, 2012 19:45

Problem when installing Openfoam 2.0.x with mac
 
Hi Everyone,

I tried install Openfoam in mac and I followed this guide (source:http://sourceforge.net/projects/macopenfoam/files/: )
HOWTO (only have to do all this ONCE):
1. Save the disk image (.sparseimage) in a convenient location
2. Mount the disk image; it will mount on /Volumes/Mac-OF-2.0.x
3. Do this in a terminal:
cd ~
ln -sf /Volumes/Mac-OF-2.0.x OpenFOAM
cd OpenFOAM
ln -sf ~/Documents/OF-User `whoami`-2.0.x
4. Edit your ~/.profile file in a text editor and add the following:
. ~/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc
5. Quit and reopen the Terminal application; OpenFOAM is ready

I have already install Xcode, gcc45 then After I edit ~/.profile, I got this on my terminal screen :
-bash: mpicc: command not found

I tried type icoFoam in terminal and the message :
Giovanis-MacBook-Pro:~ giovaniharyadi$ icoFoam
dyld: Library not loaded: /usr/lib/libmpi.0.dylib
Referenced from: /Users/giovaniharyadi/OpenFOAM/OpenFOAM-2.0.x/platforms/darwinIntel64Gcc45DPOpt/lib/openmpi-system/libPstream.dylib
Reason: image not found
Trace/BPT trap: 5

Please help me to solve this problem. Many thanks.


All times are GMT -4. The time now is 03:21.