CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation on Windows, Mac and other Unsupported Platforms

Installing OpenFoam2.2.2 on Mac OS X Mavericks

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 18, 2013, 18:56
Default Installing OpenFoam2.2.2 on Mac OS X Mavericks
  #1
New Member
 
Andy Lowe
Join Date: Dec 2010
Posts: 10
Rep Power: 6
ajl42 is on a distinguished road
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.
Attached Files
File Type: gz OF222_ajl42.log.gz (93.6 KB, 8 views)
ajl42 is offline   Reply With Quote

Old   December 24, 2013, 12:01
Smile Solved
  #2
New Member
 
Andy Lowe
Join Date: Dec 2010
Posts: 10
Rep Power: 6
ajl42 is on a distinguished road
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
ajl42 is offline   Reply With Quote

Old   December 25, 2013, 08:35
Default
  #3
Senior Member
 
Ke Wu
Join Date: Jan 2012
Posts: 178
Rep Power: 5
itsme_kit is on a distinguished road
Quote:
Originally Posted by ajl42 View Post
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
itsme_kit is offline   Reply With Quote

Old   December 25, 2013, 08:53
Default
  #4
New Member
 
Andy Lowe
Join Date: Dec 2010
Posts: 10
Rep Power: 6
ajl42 is on a distinguished road
Hi this is the wiki page I used.

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

Good luck,

Andy.
ajl42 is offline   Reply With Quote

Old   December 28, 2013, 10:25
Default
  #5
Senior Member
 
Ke Wu
Join Date: Jan 2012
Posts: 178
Rep Power: 5
itsme_kit is on a distinguished road
Quote:
Originally Posted by ajl42 View Post
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
itsme_kit is offline   Reply With Quote

Old   December 28, 2013, 10:36
Default
  #6
New Member
 
Andy Lowe
Join Date: Dec 2010
Posts: 10
Rep Power: 6
ajl42 is on a distinguished road
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.
ajl42 is offline   Reply With Quote

Old   December 28, 2013, 10:53
Default
  #7
Senior Member
 
Ke Wu
Join Date: Jan 2012
Posts: 178
Rep Power: 5
itsme_kit is on a distinguished road
Quote:
Originally Posted by ajl42 View Post
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
itsme_kit is offline   Reply With Quote

Old   December 28, 2013, 10:59
Default
  #8
New Member
 
Andy Lowe
Join Date: Dec 2010
Posts: 10
Rep Power: 6
ajl42 is on a distinguished road
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.
ajl42 is offline   Reply With Quote

Old   December 28, 2013, 12:34
Default Compile error for Installation/Mac OS/OpenFOAM 2.2.2
  #9
Senior Member
 
Ke Wu
Join Date: Jan 2012
Posts: 178
Rep Power: 5
itsme_kit is on a distinguished road
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
Attached Files
File Type: gz log_20130401_bgschaid.log.gz (49.2 KB, 5 views)
itsme_kit is offline   Reply With Quote

Old   December 28, 2013, 13:30
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,706
Blog Entries: 33
Rep Power: 75
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat is offline   Reply With Quote

Old   December 28, 2013, 13:42
Default
  #11
Senior Member
 
Ke Wu
Join Date: Jan 2012
Posts: 178
Rep Power: 5
itsme_kit is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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
itsme_kit is offline   Reply With Quote

Old   December 28, 2013, 13:46
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,706
Blog Entries: 33
Rep Power: 75
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Quote:
Originally Posted by itsme_kit View Post
No executable was specified on the mpirun command line.
Means that the MPI toolbox is not installed.
wyldckat is offline   Reply With Quote

Old   December 28, 2013, 13:52
Default
  #13
Senior Member
 
Ke Wu
Join Date: Jan 2012
Posts: 178
Rep Power: 5
itsme_kit is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Means that the MPI toolbox is not installed.
Any guideline available to install MPI toolbox

No info provided in wiki
itsme_kit is offline   Reply With Quote

Old   December 28, 2013, 14:35
Default
  #14
Senior Member
 
Ke Wu
Join Date: Jan 2012
Posts: 178
Rep Power: 5
itsme_kit is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Means that the MPI toolbox is not installed.
MPI has been sorted it out

But still those commands can't be found
itsme_kit is offline   Reply With Quote

Old   January 10, 2014, 12:35
Default
  #15
New Member
 
Ruben Di Battista
Join Date: May 2013
Location: Milan
Posts: 29
Rep Power: 3
tidusuper91 is on a distinguished road
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).

tidusuper91 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Install OF 1.6.ext on Arch based distribution miro2000 OpenFOAM Installation 4 October 9, 2013 15:39
installation on mac os x lion achyutan OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 1 February 28, 2013 09:15
Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 22 January 21, 2013 12:51
Problem when installing Openfoam 2.0.x with mac giovaniharyadi OpenFOAM Installation 0 March 24, 2012 20:45
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation 140 June 19, 2010 10:23


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