-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newbie Problems #71
Comments
I would suggest to use more recent OpenFOAM-9 source code. Either checkout sources from git repository, or use patch release, as described here: https://openfoam.org/news/v9-patch/. The problem is that between release 9 and time when patch was created, there was source code change: # Evaluate command-line parameters and record settings for later
# these can be used to set/unset values, or specify alternative pref files
export FOAM_SETTINGS="$@"
_foamEval $@ was changed to # Evaluate command-line parameters of the form "param=keyword" or unset
# parameters with "param="
export FOAM_SETTINGS="$@"
_foamParams $@ And this breaks application of the patch. |
So, I tried the following:
curl -L http://dl.openfoam.org/source/9 > OpenFOAM-9.20211007.tgz
curl -L https://raw.githubusercontent.com/mrklein/openfoam-os-x/master/OpenFOAM-9-2b1d7d67c.patch > OpenFOAM-9.patch However, when I run the command "git apply OpenFOAM-9.patch" I get the same error: error: patch failed: etc/bashrc:154 |
Correct URL for patch release is http://dl.openfoam.org/source/9.20211007. So, you do: $ curl -L http://dl.openfoam.org/source/9.20211007 | tar xz
$ mv OpenFOAM-9-20211007 OpenFOAM-9
$ cd OpenFOAM-9
$ curl -LO https://raw.githubusercontent.com/mrklein/openfoam-os-x/master/OpenFOAM-9-2b1d7d67c.patch
$ git apply OpenFOAM-9-2b1d7d67c.patch With your command
you just downloaded release 9 Into a file with the name OpenFOAM-9.20211007.tgz. And as a result, you got the same error. |
Thanks for the help. Now it is compiling! Next error: When I run Allwmake it goes for a long time then stops when trying to compile scotch. Here is the error:
wmake scotchDecomp |
This one is caused by new Homebrew package installation location on M1. On x86_64 Homebrew links formulae in |
Hello, Thanks for posting the problems, I faced similar issues (M1Pro 10 core, 32GB RAM) and this helped. But when I tried to test the installation, it returned such errors:
From the log, I could not see any obvious error that can be related to |
Last time similar problem was reported, the was a problem of mixing Rosetta and native code. This also can be a problem of SIP. Did you try to run |
If there is a problem with SIP, usually it manifests when a case is run from script (like Concerning Rosetta (https://en.wikipedia.org/wiki/Rosetta_(software)) I was referencing this thread: #62 (comment). Since I do not use M1, I do not encounter these problems, so I can not help you any further. |
I have a Mac mini with Apple Silicon and I'm trying to build a native instance of OpenFOAM v9. I followed the directions located here:
https://github.com/mrklein/openfoam-os-x/wiki/OpenFOAM(R)-release-&-Homebrew
Everything works fine until I get to the following command:
git apply OpenFOAM-9.patch
I receive the following error:
error: patch failed: etc/bashrc:154
error: etc/bashrc: patch does not apply
Any suggestions?
The text was updated successfully, but these errors were encountered: