|
[Sponsors] |
January 12, 2014, 17:43 |
OpenFOAM 2.2.2 failed in Mountain Lion
|
#1 | |
New Member
Marion
Join Date: Apr 2013
Posts: 15
Rep Power: 13 |
Hi guys!
I've followed step by step this tutorial to install OpenFoam in mac (http://openfoamwiki.net/index.php/In...OpenFOAM_2.2.2) and I'm getting some errors when I try to compile it. These are the errors I get in my .log file: Quote:
Any help will be much appreciated! Cheers, |
||
January 13, 2014, 17:17 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings cymbourne,
A nearly identical problem occurred back in March 2013, as shown in posts #2 and #3 on this thread: http://www.cfd-online.com/Forums/ope...tml#post412672 The problem was fixed by using the correct patch files, which are on post #4. Therefore, the big question is: which were the exact patch files you downloaded and applied? Best regards, Bruno
__________________
|
|
January 29, 2014, 22:29 |
different compile problems
|
#3 |
New Member
Peter Johnston
Join Date: Mar 2009
Location: Brisbane, Queensland, Australia
Posts: 25
Rep Power: 17 |
Hello,
I am having problems buliding OpenFOAM-2.2.2 on my mac laptop running OS-X 10.8.4. I have followed the instructions on this web site, but I get many errors. The first error that occurs is: make CFLAGS="-O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -Drestrict=__restrict -DCOMMON_TIMING_OLD -DSCOTCH_PTSCOTCH" CC="openmpicc" \ ptscotch.h \ ptscotchf.h \ libptscotch.dylib \ libptscotcherr.dylib \ libptscotcherrexit.dylib openmpicc -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -Drestrict=__restrict -DCOMMON_TIMING_OLD -DSCOTCH_PTSCOTCH -DSCOTCH_VERSION=6 -DSCOTCH_RELEASE=0 -DSCOTCH_PATCHLEVEL=0 dummysizes.c -o ptdummysizes -lz -lm Cannot open configuration file /opt/local/share/openmpi-mp/openmpi/openmpicc-wrapper-data.txt Error parsing data file openmpicc: Not found make[2]: *** [ptdummysizes] Error 243 make[1]: *** [ptscotch] Error 2 make: *** [ptscotch] Error 2 I have applied all three patches and unfortunately, have no idea what is going on. Any help would be much appreciated. Thanks, Peter. |
|
February 3, 2014, 15:38 |
|
#4 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
Did you change the SYSTEMOPENMPI inside the etc/bashrc? Code:
export WM_MPLIB=SYSTEMOPENMPI |
||
February 3, 2014, 19:42 |
|
#5 |
Member
Soeren Werner
Join Date: Mar 2009
Location: Wädenswil, Switzerland
Posts: 32
Rep Power: 17 |
Hi,
I got the very same problems. I think it will be caused by openmpi from Macports: "Error: openmpi has been made obsolete by the port openmpi-default. Please install openmpi-default instead." Means, that openmpi was not installed at all... I will try with the suggest version, however, right now it tries to install gcc48 as a dependency... I guess it will be best to try it again from a scratch, will do this tomorrow. |
|
February 5, 2014, 09:14 |
|
#6 | |
New Member
肖擎曜
Join Date: Jan 2014
Posts: 3
Rep Power: 12 |
Quote:
I think I have the same problem with you. Have you solved it? How to install openmpi? Thank you. |
||
February 5, 2014, 10:52 |
|
#7 |
Member
Soeren Werner
Join Date: Mar 2009
Location: Wädenswil, Switzerland
Posts: 32
Rep Power: 17 |
Not yet solved...
I am at work and wont find time before the weekend I guess. The problem is the new openmpi... So, the solution should be either install the openmpi-default and find the location of the binaries and adjust all the neccessary config files for the OF compilation, or, use the openmpi from ThirdParty, however, here you have to adjust the config files too... Keep on going... Would be great if Bernhard or Ruben from here could help, since they originally created the patches and the wiki... http://www.cfd-online.com/Forums/ope...ac-os-x-5.html Best, Sören |
|
February 6, 2014, 10:32 |
Fix
|
#8 |
New Member
Lárus Þorvaldsson
Join Date: Nov 2010
Posts: 2
Rep Power: 0 |
Hi.
I was able to fix this problem by editing the file OpenFOAM-2.2.2/wmake/rules/darwinIntel64Gcc46/mplibMACPORTOPENMPI and changing the following lines Code:
PINC = -I$(MPI_ARCH_PATH)/include/openmpi PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi Code:
PINC = -I$(MPI_ARCH_PATH)/../include/openmpi-mp PLIBS = -L$(MPI_ARCH_PATH)/openmpi-mp -lmpi |
|
February 7, 2014, 08:25 |
|
#9 | |
New Member
肖擎曜
Join Date: Jan 2014
Posts: 3
Rep Power: 12 |
Quote:
I've tried your method and a new problem occurred. Did you just follow the wiki and only changed the file? Here's my first error.Do you know what's going on? Code:
openmpicc -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -Drestrict=__restrict -DCOMMON_TIMING_OLD -DSCOTCH_PTSCOTCH -DSCOTCH_VERSION=6 -DSCOTCH_RELEASE=0 -DSCOTCH_PATCHLEVEL=0 dummysizes.c -o ptdummysizes -lz -lm make[2]: openmpicc: No such file or directory make[2]: *** [ptdummysizes] Error 1 make[1]: *** [ptscotch] Error 2 make: *** [ptscotch] Error 2 |
||
February 7, 2014, 11:41 |
|
#10 |
New Member
Lárus Þorvaldsson
Join Date: Nov 2010
Posts: 2
Rep Power: 0 |
Right. You might also need to add a couple of symlinks to the openmpi-default installation. I added two in /opt/local/bin
Code:
sudo ln -s mpicc-openmpi-mp openmpicc sudo ln -s mpiexec mpirun Code:
sudo ln -s mpicc-wrapper-data.txt openmpicc-wrapper-data.txt |
|
February 8, 2014, 02:33 |
|
#11 | |
New Member
肖擎曜
Join Date: Jan 2014
Posts: 3
Rep Power: 12 |
Quote:
Code:
Foam::volMesh> const&) in R.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[3]: *** [/Users/xqy/OpenFOAM/OpenFOAM-2.2.2/platforms/darwinIntel64Gcc46DPOpt/bin/R] Error 1 make[2]: *** [R] Error 2 |
||
February 8, 2014, 22:47 |
|
#12 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
I think that the patches should be edited. I contact Bernhard... |
||
September 15, 2023, 02:24 |
|
#13 |
New Member
No
Join Date: Aug 2023
Posts: 2
Rep Power: 0 |
OpenFOAM 2.2.2 encountered compatibility issues on Mountain Lion, an older macOS version. Mountain Lion, released in 2012, had limited support for modern software due to its age and 32-bit architecture. OpenFOAM, a powerful computational fluid dynamics tool, likely faced issues with the older libraries and system components on Mountain Lion. In comparison, its size and requirements exceeded what Mountain Lion could efficiently handle, causing installation or execution failures. Users faced challenges running OpenFOAM 2.2.2 smoothly on this platform. To address this, upgrading to a more recent macOS version or utilizing a more compatible Linux distribution would be advisable for better performance and compatibility.
|
|
Tags |
installation, mac os x, openfoam 2.1.x |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transient boundary conditions | Jarrod Sinclair (Sinclair) | OpenFOAM Running, Solving & CFD | 133 | May 6, 2015 07:21 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 07:31 |
user defined function | cfduser | CFX | 0 | April 29, 2006 11:58 |