|
[Sponsors] |
March 11, 2013, 14:33 |
install OpenFOAM v21 on Mac 10.6.8
|
#261 |
New Member
nataliya
Join Date: Jan 2013
Posts: 1
Rep Power: 0 |
I tried to install OpenFOAM v21 Mac 10.6.8 in accordance with following in http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac.
Then, I got Code:
timon111:OpenFOAM-v2.1 nat$ ls -l total 170360 drwxr-xr-x@ 9 nat staff 544 11 mar 18:29 OpenFOAM-2.1.0 -rw-r--r--@ 1 nat staff 32518358 11 mar 18:25 OpenFOAM-2.1.0.tgz -rw-r--r--@ 1 nat staff 4174 11 mar 18:17 OpenFOAM-2.1.x-Mac-gcc46.patch -rw-r--r--@ 1 nat staff 37974 11 mar 18:17 OpenFOAM-2.1.x-Mac.patch -rw-r--r--@ 1 nat staff 16264 11 mar 18:17 OpenFOAM-2.1.x-gcc42.patch drwxr-xr-x@ 6 nat staff 612 11 mar 18:27 ThirdParty-2.1.0 -rw-r--r--@ 1 nat staff 3053 11 mar 18:16 ThirdParty-2.1.0-Mac.patch -rw-r--r--@ 1 nat staff 54629903 11 mar 18:26 ThirdParty-2.1.0.tgz Then I perfomed these operations Code:
timon111:OpenFOAM-v2.1 nat$ mv ThirdParty-2.1.0.tgz ThirdParty-2.1.0 timon111:OpenFOAM-v2.1 nat$ mv OpenFOAM-2.1.x-Mac.patch OpenFOAM-2.1.0 timon111:OpenFOAM-v2.1 nat$ mv OpenFOAM-2.1.x-gcc42.patch OpenFOAM-2.1.0 timon111:OpenFOAM-v2.1 nat$ cd OpenFOAM-2.1.0 timon111:OpenFOAM-2.1.0 nat$ ls bin/addr2line4Mac.py bin/addr2line4Mac.py timon111:OpenFOAM-2.1.0 nat$ ls -l bin/addr2line4Mac.py -rw-r--r-- 1 nat staff 737 11 mar 18:34 bin/addr2line4Mac.py timon111:OpenFOAM-2.1.0 nat$ chmod a+x bin/addr2line4Mac.py timon111:OpenFOAM-2.1.0 nat$ ls -l bin/addr2line4Mac.py -rwxr-xr-x 1 nat staff 737 11 mar 18:34 bin/addr2line4Mac.py Code:
mon111:OpenFOAM-2.1.0 nat$ patch -p1 < OpenFOAM-2.1.x-Mac-gcc46.patch Code:
OpenFOAM-2.1.x-gcc42.patch OpenFOAM-2.1.0 Code:
timon111:OpenFOAM-v2.1 nat$ mv OpenFOAM-2.1.x-Mac-gcc46.patch OpenFOAM-2.1.0 timon111:OpenFOAM-2.1.0 nat$ patch -p1 < OpenFOAM-2.1.x-Mac-gcc46.patch Code:
-bash: /Users/nat/Gcc46/Gcc46-2.1.0/bin/foamCleanPath: No such file or directory Thanks |
|
March 11, 2013, 17:40 |
|
#262 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
b) the path should read /Users/nat/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath (THAT file should be there). My guess is that instead of setting WM_COMPILER to Gcc46 you set WM_PROJECT (an that variable should NEVER be altered) somewhere before (probably at the part where they explain changing etc/bashrc)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
March 11, 2013, 17:53 |
|
#263 |
New Member
Thomas Olsen
Join Date: Feb 2013
Posts: 6
Rep Power: 13 |
Hello Peter,
It looks like you are using mpicc to compile ptscotch. You need to change this to openmpicc if you haven't done so already. You may also want to try 2.2.0 that has just been released. gschaider has provided patches for this version in another post in a different thread. The title of the thread is something like patches for version 2.2.0 (or 2.2.x). You may still need to make the change to openmpicc in the Makefile.inc for scotch_6.0.0. Another change may come in the config folder (OpenFOAM-2.2.x/etc/config) for the settings.sh file (if you are using bash). Simply change mpicc to openmpicc if this hasn't been taken care of by the patches. Good Luck, Tom |
|
March 11, 2013, 18:19 |
|
#264 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
March 11, 2013, 21:28 |
|
#265 |
New Member
Join Date: Mar 2013
Posts: 10
Rep Power: 13 |
ah ok. cheers. so I'm running open mpi 1.6.4
thanks guys. I'll give it a whirl |
|
March 13, 2013, 12:32 |
|
#266 |
New Member
Join Date: Mar 2013
Posts: 10
Rep Power: 13 |
ok so I tried installing 2.2 and still errors. here is my log
|
|
March 13, 2013, 13:04 |
|
#267 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Rant: this is the 4th make.log.tar-something cluttering my Download-folder (would be more if I wouldn't remove that crap from time to time). That would be doable if the file was only zipped because then less could handle it (could anyone explain to me why anyone would want to tar a single file - yeah. If you want to preserve the rights and ownership. But apart from that). So if you must attach log files please:
- give them a unique name - store them a sensible format (just gnuzipped for single file) - post an excerpt of the part where you THINK that the error occurs. Maybe that makes looking at the log unnecessary If the act of getting to the information takes me longer than it took you to post your question (and remember: that doesn't include the time it might take me to answer) then I don't feel were motivated in the first place (occasionaly I feel motivated to rant)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request Last edited by gschaider; March 13, 2013 at 13:05. Reason: y |
|
March 13, 2013, 15:34 |
|
#268 |
New Member
Thomas Olsen
Join Date: Feb 2013
Posts: 6
Rep Power: 13 |
Hi Peter,
It looks like darwinIntel64Gcc46 may be a simple file instead of a link to darwinIntel64Gcc. So check out ~/OpenFOAM/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc46 to see if it is a plain file and not a symbolic link to ~/OpenFOAM/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc. In case you don't know already, use ln -s "~/OpenFOAM/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc" "~/OpenFOAM/OpenFOAM-2.2.0/wmake/rules/darwinIntel64Gcc46" to form the symbolic link. Take the quotes out. They just help to point out the source directory and target directory. man ln will give you more information on the ln command. Tom |
|
March 13, 2013, 22:40 |
|
#269 | |
New Member
Join Date: Mar 2013
Posts: 10
Rep Power: 13 |
Quote:
|
||
March 14, 2013, 01:27 |
|
#270 | |
New Member
Join Date: Mar 2013
Posts: 10
Rep Power: 13 |
Quote:
SloanRenumber.C:34:28: fatal error: boost/config.hpp: No such file or directory compilation terminated. make: *** [Make/darwinIntel64Gcc46DPOpt/SloanRenumber.o] Error 1 CGALPolyhedron/buildCGALPolyhedron.H:39:35: fatal error: CGAL/Simple_cartesian.h: No such file or directory compilation terminated. make[2]: *** [Make/darwinIntel64Gcc46DPOpt/surfaceFeatureExtract.o] Error 1 make[2]: Target `/Users/piotrtalikowski/OpenFOAM/OpenFOAM-2.2.0/platforms/darwinIntel64Gcc46DPOpt/bin/surfaceFeatureExtract' not remade because of errors. make[1]: *** [surfaceFeatureExtract] Error 2 ERROR: ParaView not found in /Users/piotrtalikowski/OpenFOAM/ThirdParty-2.2.0/platforms/darwinIntel64Gcc46/paraview-3.12.0 here is my log |
||
March 14, 2013, 02:40 |
|
#271 |
New Member
Join Date: Mar 2013
Posts: 10
Rep Power: 13 |
ok managed to make that symbolic link to darwinIntel64Gcc but still getting similar errors. all seems to start with boost/config.hpp
|
|
March 14, 2013, 06:16 |
|
#272 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
- you can live without the surfaceFeatureExtract-utilitiy (a lot of people can) - you install CGAL and boost with "port install boost cgal" The paraview-thing puzzles me a bit, because the patch should discourage use of the ThirdParty-paraview (mainly because I can live with the built in reader of the distributed binaries). Will have a look. But the basic OF-utilities should work for you (try blockMesh/setFields/interFoam for the damBreak-case)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
March 14, 2013, 06:17 |
|
#273 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
That's OK. Hope you didn't feel offended
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
March 16, 2013, 03:59 |
|
#274 |
New Member
Join Date: Mar 2013
Posts: 10
Rep Power: 13 |
thanks for your help guys. but decided to install openfoam via virtual box ubuntu
|
|
March 16, 2013, 07:03 |
|
#275 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
As you want. Although it was my impression that your installation was mostly functional (if those two errors you posted were the only ones)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
April 20, 2013, 06:30 |
|
#276 |
New Member
Pierluigi Morra
Join Date: Apr 2013
Posts: 25
Rep Power: 13 |
Hello, I have the same problem with Paraview of the guy who posted above. Anyway I have to say that I didn't follow all the steps in the Wiki, because before the guide suggested here I found another tutorial and directly followed it. So, I just downloaded the material, installed the Pre-requisites and launched the compiling of OpenFoam without patching anything. Then I wanted to check if OpenFoam worked (I have to say that's my very first time in the Terminal) so I built a run directory copied the tutorial directory in it and did this:
Code:
cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity blockMesh icoFoam Code:
paraFoam Code:
FATAL ERROR: ParaView reader module libraries do not exist Please build the reader module before continuing: cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers ./Allwclean ./Allwmake Code:
ERROR: ParaView not found in /Users/piMac/OpenFOAM/ThirdParty-2.2.0/platforms/darwinIntel64Gcc/paraview-3.12.0 I also want to tell you that when I downloaded the OpenFOAM-v2.2.sparseimage a disk automatically mounted on my desktop, I didn't create a disk image, and I'm wondering if I have to keep this there forever to use OpenFoam or I can copy the OpenFoam directory in my application directory to use openFoam. Many Thanks in advance. |
|
April 20, 2013, 11:57 |
|
#277 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|||
April 20, 2013, 14:34 |
|
#278 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
@maCrobo: Quick answer: http://openfoamwiki.net/index.php/Ho...using_ParaView
And as Bernhard said, don't expect us to guess which instructions you've been following
__________________
|
|
May 9, 2013, 12:15 |
Help
|
#279 |
New Member
Join Date: Jan 2013
Posts: 11
Rep Power: 13 |
Hello,
OF 2.0 was working quiet well on my lion. I recently upgraded my MAC to mountain Lion and wanted to have OF 2.2 on it. I did all the steps just fine but at the end I got some errors(which I don't have any clue) and OF is not working. I attached the make log file, maybe somebody can help. I really appreciate. best regards |
|
May 9, 2013, 14:00 |
|
#280 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
Tags |
compilation error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extend Project 1.6-ext Binary Release for Mac OS X | hjasak | OpenFOAM Announcements from Other Sources | 26 | November 5, 2013 17:50 |
Openfoam mac: Compiling custom libraries | atareen64 | OpenFOAM | 3 | April 14, 2011 12:01 |
OpenFOAM-1.6 on Mac OS X 10.6.1 | elvisjohndowson | OpenFOAM | 6 | October 21, 2009 16:45 |
Mac Simple Install Request or Processing Assistance Help | sjohnson | OpenFOAM Installation | 4 | December 12, 2008 08:46 |
MAC + SOLA for free surface | T | Main CFD Forum | 1 | April 11, 2001 14:43 |