Install v2006 on macOS Mojave failed
1 Attachment(s)
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 |
Would you mind to report the issue to the GitLab? Thanks.
|
Quote:
Did you solve this issue? I'm also bothered by this issue while installing OpenFOAM v2106 on the macOS bigsur. Best regards, Gang |
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 |
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 |
Quote:
Best regards, Gang |
Same problem here
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 |
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. |
Quote:
Thank you Federico! Where can I find the normal installation instructions? |
|
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.... |
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,
|
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... |
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 |
Quote:
/dev/disk4s2 4906968 28840 4878128 1% 6 4294967273 0% /usr/local/openfoam |
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, |
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 |
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 ;-) |
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; ~~~~ ^ |
Did you delete all your previous tries from disk? Best
|
All times are GMT -4. The time now is 05:38. |