Mac-patch for OpenFOAM 2.4
1 Attachment(s)
Hi!
Attached you'll find the patch that makes OF 2.4 (I used the git-repository, but the source tarball should work too) compile on a Mac. Instructions at http://openfoamwiki.net/index.php/In...OpenFOAM_2.3.x should work. The patch is almost the same as for 2.3. Major difference is that the stack-trace is now delegated to lldb (which does a better job). The old stack-trace is done in addition Bernhard Attachment 39711 |
Installation OF 2.4 on Mac OS X
Hi!
I'm new to OpenFOAM and working with a terminal. I want to install the latest version of OF (2.4) on my Mac OS X Yosemite version 10.10.3. I followed the instructions you provided on http://openfoamwiki.net/index.php/In...OpenFOAM_2.3.x but now applied on the 2.4.x version. I installed all the necessary ports as you can see below Code:
$ port select --summary I got the following message: Code:
$ blockMesh Thanks in advance! |
I am running 10.10.4 and also failed to install both 2.3 and 2.4 version. With previous system version (10.10.2 I think) installation of 2.3 went nice and easy this time I get plenty of errors when building.
Anyone succeeded installing OF 2.4 on Yosemite 10.10.4? :confused: |
1 Attachment(s)
Tried again with OF 2.4.0 and instructions (they worked on previous OS X version) from this website. Build failed again...
My ports config: Code:
Name Selected Options Code:
gcc-mp-4.8 -m64 -fsignaling-nans -ftrapping-math -fdiagnostics-color=always -Wall -O2 -fPIC -Ddarwin dirToString.c -o /Users/Patryk/OpenFOAM/OpenFOAM-2.4.0/wmake/platforms/darwinIntel64Gcc48/dirToString |
OpenFOAM-2.4.x-Mac.patch works for me
Thanks for the patch. Works for me on 10.10.4 with MacPorts providing dependencies and gcc-4.9 compiler.
Some hints for those having trouble. Install the following via Macports: scotch +gcc49 -mpich +openmpi cgal flex metis +gcc49 ccache bison boost qt4-mac Make sure to create and use properly the case-sensitive journaled sparse image (documented elsewhere). I link the image mountpoint (usually in /Volume) to $HOME. Edit ~/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc as follows: export WM_NCOMPPROCS=N # add this line, N from: "sysctl -n hw.ncpu" export WM_COMPILER=Gcc49 # change compiler you want export WM_MPLIB=SYSTEMOPENMPI # check this, should be OK Then, Code:
cd ~/OpenFOAM/OpenFOAM-2.4.0/ |
Hi
Do you know how to install db 48 separately? I have it on my mac (10.10.4), but when I try to set it to a port, it says Quote:
Thanks for the help. |
Quote:
|
openfoam error
2 Attachment(s)
the error message is obtained by compiling OpenFOAM on Mac YosemiteAttachment 41406
Attachment 41407 -lfiniteVolume -lmeshTools -lOpenFOAM -ldl -lpthread -lm -o /Users/Mowa/OpenFOAM23/OpenFOAM-2.4.x/platforms/darwinIntel64Gcc49DPOpt/bin/solidEquilibriumDisplacementFoam ld: library not found for -lfiniteVolume clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [/Users/Mowa/OpenFOAM23/OpenFOAM-2.4.x/platforms/darwinIntel64Gcc49DPOpt/bin/solidEquilibriumDisplacementFoam] Error 1 make[1]: *** [solidEquilibriumDisplacementFoam] Error 2 make[1]: Target `application' not remade because of errors. make: *** [stressAnalysis] Error 2 make: Target `application' not remade because of errors. |
Hi,
I followed the instructions and everything compiled with no errors on OS X 10.10.5 with mp-gcc52. However, when running blockmesh for the cavity tutorial I am getting "Segmentation fault: 11". Any clues? |
Installation works without selecting db48
Quote:
first of all thanks for the patch! I had the same issue with selecting db48. But I was able to install OpenFOAM 2.4.x on OX 10.10.5 by simply ignoring that error message :D. I also used the "hints" from post #5 |
Hi. Following your hints and the only step I don't follow is this one.
Quote:
|
Quote:
Code:
export WM_NCOMPPROCS=N |
All times are GMT -4. The time now is 11:41. |