CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installing OpenFoam2.2.2 on Mac OS X Mavericks (https://www.cfd-online.com/Forums/openfoam-installation/127742-installing-openfoam2-2-2-mac-os-x-mavericks.html)

ajl42 December 18, 2013 17:56

Installing OpenFoam2.2.2 on Mac OS X Mavericks
 
1 Attachment(s)
Hi, I've followed the wiki installation process for installing OpenFoam2.2.2 on mac os x Mavericks (Installation/Mac OS/OpenFOAM 2.2.2). There's an error early on in the process when trying to compile Scotch. I've attached the log file.

Can anyone shed light on what I've done wrong.

Many Thanks,

Andy.

ajl42 December 24, 2013 11:01

Solved
 
Hi, I managed to solve this using the posts on this forum. Thank you to everyone that posted it helped tremendously. The main learning points for me were :

Follow the procedure mentioned above with the following tweaks:

1. use WM_MPLIB=MACPORTOPENMPI : if you have recently installed Mavericks, make sure you reinstall your ports as macports recommend. I used the +gcc46 variant for the openmpi port.
2. ensure that the options files are written correctly. I found quite a few errors where comments or carriage returns had been added. The log file can be used to find which options files are incorrect.
3. delete the /*-lsolidThermo*/ \ flag comment in the OpenFOAM2.2.2/src/fvOptions/Make/darwinIntel64Gcc46DPOpt/options file.

Good luck, I learned a vast amount reading the forum

itsme_kit December 25, 2013 07:35

Quote:

Originally Posted by ajl42 (Post 466976)
Hi, I've followed the wiki installation process for installing OpenFoam2.2.2 on mac os x Mavericks (Installation/Mac OS/OpenFOAM 2.2.2). There's an error early on in the process when trying to compile Scotch. I've attached the log file.

Can anyone shed light on what I've done wrong.

Many Thanks,

Andy.

Hi Andy

May I have some guidelines about installing openforam in mac os x mavericks

Thanks

ajl42 December 25, 2013 07:53

Hi this is the wiki page I used.

http://openfoamwiki.net/index.php/In...OpenFOAM_2.2.2

Good luck,

Andy.

itsme_kit December 28, 2013 09:25

Quote:

Originally Posted by ajl42 (Post 467617)
Hi this is the wiki page I used.

http://openfoamwiki.net/index.php/In...OpenFOAM_2.2.2

Good luck,

Andy.

Hi Andy

I have followed the instruction to install OpenFoam
however, when I try to run one of cases in tutorial, those commands not find

blockMesh
icoFoam
paraFoam

Do you know what happens in my situation

Thanks

ajl42 December 28, 2013 09:36

Hi, did you get any compile errors? If it compiled without errors then you need to open a new terminal and source the bashrc file in OpenFOAM/OpenFOAM-2.2.2/etc/

Andy.

itsme_kit December 28, 2013 09:53

Quote:

Originally Posted by ajl42 (Post 467940)
Hi, did you get any compile errors? If it compiled without errors then you need to open a new terminal and source the bashrc file in OpenFOAM/OpenFOAM-2.2.2/etc/

Andy.

yes i got compile errors

how can i fix them

ajl42 December 28, 2013 09:59

Hi, find the first error then search on this forum for a solution. If you can't find a solution on the forum, then post the error on this thread along with your compile log. Someone will be able to solve the issue.

Andy.

itsme_kit December 28, 2013 11:34

Compile error for Installation/Mac OS/OpenFOAM 2.2.2
 
1 Attachment(s)
Hi

I have followed every step in this instruction: http://openfoamwiki.net/index.php/In...es_and_patches

In the section of 4 Diagnosis and Problems, I found such errors which I don't know how to fix them

Probably due to these error, commands (blockMesh, icoFoam, paraFoam) can't be found when I try to run cavity case in tutorial

I attached the log file for your assistance

Many thanks

wyldckat December 28, 2013 12:30

Greetings to all!

@itsme_kit: The problem seems to be that something in the installation of Macports, XCode, GCC or standard C/C++ library did not go well.
If you try to build a small C or C++ application, you should probably get a very similar error.

Have a look into the older tutorial for OpenFOAM 2.1.x, in the respective section regarding the basic requirements: http://openfoamwiki.net/index.php/In...c_requirements

Best regards,
Bruno

itsme_kit December 28, 2013 12:42

Quote:

Originally Posted by wyldckat (Post 467948)
Greetings to all!

@itsme_kit: The problem seems to be that something in the installation of Macports, XCode, GCC or standard C/C++ library did not go well.
If you try to build a small C or C++ application, you should probably get a very similar error.

Have a look into the older tutorial for OpenFOAM 2.1.x, in the respective section regarding the basic requirements: http://openfoamwiki.net/index.php/In...c_requirements

Best regards,
Bruno

Hi Bruno

I checked MPI installation by typing mpirun -v in the terminal

I got a problem: --------------------------------------------------------------------------
No executable was specified on the mpirun command line.

Aborting.
--------------------------------------------------------------------------

I'm not sure what it means

wyldckat December 28, 2013 12:46

Quote:

Originally Posted by itsme_kit (Post 467949)
No executable was specified on the mpirun command line.

Means that the MPI toolbox is not installed.

itsme_kit December 28, 2013 12:52

Quote:

Originally Posted by wyldckat (Post 467951)
Means that the MPI toolbox is not installed.

Any guideline available to install MPI toolbox

No info provided in wiki

itsme_kit December 28, 2013 13:35

Quote:

Originally Posted by wyldckat (Post 467951)
Means that the MPI toolbox is not installed.

MPI has been sorted it out

But still those commands can't be found

rdbisme January 10, 2014 11:35

In the Wiki is provided how to install openmpi. Supposing you correctly installed Macports

Code:

sudo port install openmpi
Did you follow the Final Steps of the tutorial in particular the point 6? It is about openmpi (and the mpirun command).

;)


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