|
[Sponsors] |
[OpenFOAM.com] Install v2006 on macOS Mojave failed |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 13, 2020, 05:17 |
Install v2006 on macOS Mojave failed
|
#1 | |||
New Member
Join Date: Aug 2020
Posts: 1
Rep Power: 0 |
Hi,
I tried to install OpenFOAM v2006 from terminal on macOS Mojave. I followed the instruction https://develop.openfoam.com/Develop...p/doc/Build.md. step1, source ~/OpenFOAM/OpenFOAM-v2006/etc/bashrc, it shows Quote:
Quote:
step4, I got the trouble as shown below Quote:
Then I tried to change the string.H to another name, but it doesn't work. Any help or suggestion on this issue would be greatly appreciated. Best regards |
||||
August 13, 2020, 18:28 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Would you mind to report the issue to the GitLab? Thanks.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
August 17, 2021, 05:42 |
|
#3 | |
Member
Gang Wang
Join Date: Oct 2019
Location: China
Posts: 64
Rep Power: 8 |
Quote:
Did you solve this issue? I'm also bothered by this issue while installing OpenFOAM v2106 on the macOS bigsur. Best regards, Gang |
||
September 13, 2021, 10:35 |
|
#4 | |
Member
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5 |
Quote:
Hi! I have problems too... I can not figure out how to compile OpenFOAM (9) on Bug Sur -Apple m1, compiling from source code... Is there a guide to do it? Thanks |
||
September 13, 2021, 10:51 |
|
#5 | |
Member
Gang Wang
Join Date: Oct 2019
Location: China
Posts: 64
Rep Power: 8 |
Quote:
I've successfully installed the OpenFOAM v2106 on Big-sur. I think you need to create a virtual volume, by following the guidance here: https://github.com/mrklein/openfoam-os-x Best regards, Gang Wang |
||
September 13, 2021, 11:34 |
|
#6 | |
Member
Gang Wang
Join Date: Oct 2019
Location: China
Posts: 64
Rep Power: 8 |
Quote:
Best regards, Gang |
||
September 16, 2021, 06:55 |
Same problem here
|
#7 |
New Member
Federico Carminati
Join Date: Sep 2021
Posts: 10
Rep Power: 5 |
Hello,
is there any update on this? I have exactly the same problem even after applying the patch. Thanks for the help. Best regards Federico Carminati |
|
September 17, 2021, 10:26 |
|
#8 |
New Member
Federico Carminati
Join Date: Sep 2021
Posts: 10
Rep Power: 5 |
I believe the problem is due to the fact that in the OpenFoam files there are some files that are distinguishable only by their case. While this is perfectly file in most Linux systems, on the Mac by default the filesystem is case preserving but not distinguishing. This means that if you create a file, say “hello.dat”, it will be indistinguishable from a file “Hello.dat” in another directory. This probably causes some confusions in the include directives that pick up the wrong file and compilation fails. I found the (admittedly baroque) solution of creating a virtual file system on my Mac that is case discriminating and to compile OpenFoam there. The instructions (that I will post in the forum), are the following:
hdiutil create -size 5g -fs 'Case-sensitive Journaled HFS+' -volname openfoam openfoam sudo hdiutil attach -mountpoint /usr/local/openfoam openfoam.dmg cd /usr/local/openfoam and there one can deploy the normal installation instructions. To increase portability of the openfoam project it would perhaps be worth considering to disambiguate files not only via their case, but by using different combinations of letters. |
|
September 17, 2021, 14:53 |
|
#9 | |
Member
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5 |
Quote:
Thank you Federico! Where can I find the normal installation instructions? |
||
September 17, 2021, 16:49 |
|
#10 |
New Member
Federico Carminati
Join Date: Sep 2021
Posts: 10
Rep Power: 5 |
||
September 18, 2021, 08:39 |
|
#11 | |
Member
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5 |
Quote:
Thank you! To be honest, is too difficult to me... i’ve tried several times, but nothing.... I found that docker for M1 SoC works, but openFoam image is always emulated, and so is very very slow... I don’t know what to do.... |
||
September 18, 2021, 08:40 |
|
#12 |
New Member
Federico Carminati
Join Date: Sep 2021
Posts: 10
Rep Power: 5 |
I am really new to OF, but I have *a lot* of experience installing "stuff". Mind posting your problems? Might be I can be of help. Best,
|
|
September 19, 2021, 11:18 |
|
#13 | |
Member
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5 |
Quote:
First: I create and mount an image disk as you suggested --> No problem with this. And then? I'm sorry but I'm new to install from terminal all this things, I'm getting confused in all the instruction reported in the guide you linked before. Are the preliminaries necessary? Maybe I need, if exist, a noob guide to do it... |
||
September 19, 2021, 11:50 |
|
#14 |
New Member
Federico Carminati
Join Date: Sep 2021
Posts: 10
Rep Power: 5 |
Can you mount it on /usr/local/openfoam?
if yes do cd /usr/local/openfoam df -k . and you should see "something" like Filesystem 1024-blocks Used Available Capacity iused ifree %iused Mounted on /dev/disk9s2 4382680 3621640 761040 83% 203807 4294763472 0% /usr/local/openfoam |
|
September 19, 2021, 12:28 |
|
#15 | |
Member
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5 |
Quote:
/dev/disk4s2 4906968 28840 4878128 1% 6 4294967273 0% /usr/local/openfoam |
||
September 19, 2021, 13:57 |
|
#16 |
New Member
Federico Carminati
Join Date: Sep 2021
Posts: 10
Rep Power: 5 |
good, now download the two tar files here
Source: https://dl.openfoam.com/source/v2106/OpenFOAM-v2106.tgz ThirdParty: https://dl.openfoam.com/source/v2106...arty-v2106.tgz and untar them into /usr/local/openfoam if you do not know how to do that, download the files and let me know. Best, |
|
September 19, 2021, 14:22 |
|
#17 |
Member
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5 |
Thank you, you are very kind!
I think I've done it, I "untarned" both files... under /usr/local/openfoam I see (ls command): OpenFOAM-v2106 ThirdParty-v2106 |
|
September 19, 2021, 15:07 |
|
#18 |
New Member
Federico Carminati
Join Date: Sep 2021
Posts: 10
Rep Power: 5 |
you are almost there!!
$ source /usr/local/openfoam/OpenFOAM-v2106/etc/bashrc $ cd /usr/local/openfoam/OpenFOAM-v2106 $ foamSystemCheck $ ./Allwmake -s -l and go for a coffee ;-) |
|
September 19, 2021, 15:57 |
|
#19 |
Member
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5 |
Unfortunately it doesn't work...
Maybe with all the tries before, I messed up something... A lot of warning in the log file, e.g.: warning: overriding currently unsupported use of floating point exceptions on this target [-Wunsupported-floating-point-opt] and errors, e.g.: signals/feexceptErsatz.H:39:24: error: no member named '__control' in 'fenv_t' old_excepts = fenv.__control & FE_ALL_EXCEPT; ~~~~ ^ |
|
September 20, 2021, 04:13 |
|
#20 |
New Member
Federico Carminati
Join Date: Sep 2021
Posts: 10
Rep Power: 5 |
Did you delete all your previous tries from disk? Best
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel | U.Golling | OpenFOAM Running, Solving & CFD | 52 | September 23, 2023 04:35 |
Initial conditions for uniform flow | andreas | OpenFOAM | 5 | November 16, 2012 16:00 |
[OpenFOAM] ParaView/Parafoam error when making animation | Disco_Caine | ParaView | 6 | September 28, 2010 10:54 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 07:31 |
user defined function | cfduser | CFX | 0 | April 29, 2006 11:58 |