CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] make Installation for MacOS

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2021, 13:18
Default make Installation for MacOS
  #1
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
Hi,


Hi I'm new to openFoam and coding with bash in general and I've run into some problems running the case tutorials which use code streams to compile. When I use ./Allrun on these cases, I get the error:

No wmake command found ... cannot compile

I installed make using homebrew (by simply putting brew install make into the command window) but this hasn't made a difference and openFoam doesn't seem to recognise I've installed make for it to run wmake. I'm wondering if anyone might be able to give me a bit of help with this as I've been trying to solve this for quite a few days now and havn't got anywhere. To be honest I think this is because I'm pretty out of my depth with some of the bash knowledge so it's quite hard for me to understand what I need to do. I think it has something to do with make not being fully installed for some reason? Or maybe because I need to move the make folder to a specific location? Any help would really really be appreciated for this newbie!

By the way, I installed openfoam with docker and am running on macOs 10.14.6
KimBest is offline   Reply With Quote

Old   February 10, 2021, 16:24
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Hi,

Would you consider to dive into the build wiki for the installation?

Did you ensure that your installation is complete? Please check your installation by running foamInstallationTest.

Did you source OpenFOAM environment before executing "./Allrun" which contains OpenFOAM commands?
HPE is offline   Reply With Quote

Old   February 11, 2021, 09:24
Default
  #3
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
Hi,


I didn't use the wiki installation as the openfoam.com website explicitly recommeds to install via docker. I implemented the instructions here relogiously (https://www.openfoam.com/download/in...binary-mac.php). It also says at the bottom that all the code should be compiled by docker, ie.


"The Docker environment contains a full OpenFOAM development environment so all Allwmake, wmake, wclean etc. commands work (it is running the actual environment OpenFOAM was compiled in!) "

, and: " mounts the home directory of the user with read/write access
optionally channels the graphics
sets up the OpenFOAM environment.
"


When I run foamInstallationTest in terminal, it tells me I am missing ThirdParty, and that wmake is uninstalled. It also says: [env variable unset] next to $WM_DIR . Do you think there is a way for me to sort this issue while continuing with Docker, as I suspect if i go down the wiki installation way I will create more errors for myself.
I have also installed the mac command line tools so I would have thought docker would be able to compile wmake from them.
KimBest is offline   Reply With Quote

Old   February 26, 2021, 12:41
Default An updated installation guide
  #4
New Member
 
bushra chet
Join Date: Dec 2020
Location: İstanbul, Turkey
Posts: 3
Rep Power: 6
bushra is on a distinguished road
Hi,

I too lost among several installation guides. Firstly i installed Docker then removed due to advices about installation from source.
Secondly, with the aid of an obsolete guide (but it became life-saver), i installed macports and paraview. For OF installation, i cloned foam-extend-4. Then step of "edit the bashrc" did not work. The default shell is neither bash nor csh, it's zsh. Should I install the bash shell?



Could anyone make it clear?

Bushra

Last edited by bushra; March 1, 2021 at 04:28.
bushra is offline   Reply With Quote

Old   March 3, 2021, 10:49
Default
  #5
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
Quote:
Originally Posted by bushra View Post
Hi,

I too lost among several installation guides. Firstly i installed Docker then removed due to advices about installation from source.
Secondly, with the aid of an obsolete guide (but it became life-saver), i installed macports and paraview. For OF installation, i cloned foam-extend-4. Then step of "edit the bashrc" did not work. The default shell is neither bash nor csh, it's zsh. Should I install the bash shell?



Could anyone make it clear?

Bushra

Hi Bushra,


Did you manage to do the installation successfully? I am still using the docker installation but I don't want to begin with installing from source unless I know it can definitely work properly.



Kim
KimBest is offline   Reply With Quote

Old   March 4, 2021, 16:52
Default
  #6
New Member
 
bushra chet
Join Date: Dec 2020
Location: İstanbul, Turkey
Posts: 3
Rep Power: 6
bushra is on a distinguished road
Quote:
Originally Posted by KimBest View Post
Hi Bushra,


Did you manage to do the installation successfully? I am still using the docker installation but I don't want to begin with installing from source unless I know it can definitely work properly.



Kim
No Kim, I could not install yet. I agree with you, continue with docker.
bushra is offline   Reply With Quote

Old   March 5, 2021, 06:26
Default
  #7
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
Quote:
Originally Posted by bushra View Post
No Kim, I could not install yet. I agree with you, continue with docker.



Okay thanks for the update. I think with docker most of the functionality is retained and it's only a few specific things which don't work, namely cases using codestreams and the fvOptions utility (which is what I'm trying to sort now).
KimBest is offline   Reply With Quote

Old   March 6, 2021, 04:41
Default
  #8
New Member
 
bushra chet
Join Date: Dec 2020
Location: İstanbul, Turkey
Posts: 3
Rep Power: 6
bushra is on a distinguished road
Quote:
Originally Posted by KimBest View Post
Okay thanks for the update. I think with docker most of the functionality is retained and it's only a few specific things which don't work, namely cases using codestreams and the fvOptions utility (which is what I'm trying to sort now).
I thank you too.

Since I have any more time to start CFD analysis, I'm trying to install from source. The problem may be caused by the shell of terminal that's zsh for me, while guides explain steps with bash.
bushra is offline   Reply With Quote

Old   March 6, 2021, 07:39
Default
  #9
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
Quote:
Originally Posted by bushra View Post
I thank you too.

Since I have any more time to start CFD analysis, I'm trying to install from source. The problem may be caused by the shell of terminal that's zsh for me, while guides explain steps with bash.

I see. I think now instead I am going to pursue running OF with amazon web services via remote desktop instead, as I think that will be more error free.


I have now switched to using CFDDFC on amazon's web services to run my simulations. I can confirm that there is something wrong with the mac installation files, as I can now run the simulations perfectly with my chosen geometry.



Kim

Last edited by KimBest; March 10, 2021 at 08:19.
KimBest is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two phase flow in porous medium Milaad OpenFOAM 7 July 1, 2024 06:08
macOSX installation issues fulcrum64th SU2 Installation 2 May 29, 2019 13:14
fireFoam installation Roman1 OpenFOAM Installation 2 September 27, 2013 04:05
compiling firefoam Farshad_Noravesh OpenFOAM 27 December 24, 2012 05:21
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32


All times are GMT -4. The time now is 13:54.