|
[Sponsors] |
September 24, 2012, 13:10 |
|
#121 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
BCD, you should have kept reading
See post #89: http://www.cfd-online.com/Forums/ope...tml#post370256 - and see #90 as well, just in case...
__________________
|
|
September 24, 2012, 14:36 |
|
#122 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Anyway: from the log it seems that this part of the patch was not correctly applied: Code:
diff --git a/applications/utilities/postProcessing/turbulence/R/Make/options b/applications/utilities/postProcessing/turbulence/R/Make/options --- a/applications/utilities/postProcessing/turbulence/R/Make/options +++ b/applications/utilities/postProcessing/turbulence/R/Make/options @@ -7,6 +7,7 @@ EXE_LIBS = \ $(FOAM_LIBBIN)/postCalc.o \ + -lincompressibleTurbulenceModel \ -lincompressibleRASModels \ -lincompressibleTransportModels \ -lfiniteVolume \
__________________
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 |
||
September 27, 2012, 10:27 |
success
|
#123 |
New Member
Join Date: Sep 2012
Posts: 10
Rep Power: 14 |
Great, thanks, no more cookies - we have OF working, of sorts.
I did a complete reinstallation and followed the various steps again. I think perhaps the first time I had applied both the gcc42 and gcc46 patches, I also needed to edit the various options files, per post #89 here and delete the bottom lines in the ThirdParty patch per #4. Thanks so much guys, it's great to finally have lift-off. the cavity case runs great and per post #39 running touch (enter casename).foam generates a file that ParaView can open. sorry about the txt/rtf mixup, won't happen again! Oh, and I've stepped up my post-reading diligence. Last edited by BCD; September 27, 2012 at 17:18. Reason: read the manual :) |
|
October 2, 2012, 10:49 |
|
#124 |
New Member
Michael
Join Date: Dec 2011
Location: Geneva
Posts: 28
Rep Power: 15 |
Dear all,
unfortunately I deleted my installation I used for creating the manual. So I followed it again myself, see http://openfoamwiki.net/index.php/Ho...using_ParaView using Mac OS X 10.6.8 with GCC 4.6 for OpenFOAM 2.1.1-221db2718bbb. There were a few errors during the compilation process, so I would be glad if somebody could confirm that they're harmless. EDIT: Ok, one who could read has a clear advantage. I corrected the problem with the 'R', see http://www.cfd-online.com/Forums/ope...tml#post383377 ran wcleanAll and Allwmake again. No errors anymore. I tested with the icoFoam and fireFoam solver their tutorial cases and they're working. Then I copied the disk image to a OS X 10.8.2 installation with Mac port's GCC 4.6 installed. It is working just out of the box without recompiling. I hope this is a good message for all who wait for migration. Cheers, Michael Last edited by lithos; October 2, 2012 at 12:12. |
|
October 2, 2012, 16:48 |
|
#125 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Michael,
You're getting the same errors the other people have gotten as well. Read the post #122 for the fix! And if that doesn't do it, check post #121 for more post references Best regards, Bruno
__________________
|
|
October 7, 2012, 03:30 |
|
#126 |
New Member
Max
Join Date: Aug 2012
Posts: 6
Rep Power: 14 |
Dear all,
I've installed Openfoam on Mac, and it was working properly until I installed gnuplot. And now, everytime I source the bashrc file, the following lines come up: -bash: /Users/Gary/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: /bin/sh: bad interpreter: Operation not permitted -bash: /Users/Gary/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: /bin/sh: bad interpreter: Operation not permitted -bash: /Users/Gary/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: /bin/sh: bad interpreter: Operation not permitted -bash: /Users/Gary/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: /bin/sh: bad interpreter: Operation not permitted -bash: /Users/Gary/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: /bin/sh: bad interpreter: Operation not permitted -bash: /Users/Gary/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: /bin/sh: bad interpreter: Operation not permitted -bash: /Users/Gary/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: /bin/sh: bad interpreter: Operation not permitted -bash: /Users/Gary/OpenFOAM/OpenFOAM-2.1.1/bin/foamEtcFile: /bin/sh: bad interpreter: Operation not permitted -bash: /Users/Gary/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: /bin/sh: bad interpreter: Operation not permitted -bash: /Users/Gary/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: /bin/sh: bad interpreter: Operation not permitted -bash: /Users/Gary/OpenFOAM/OpenFOAM-2.1.1/bin/foamCleanPath: /bin/sh: bad interpreter: Operation not permitted Has anyone seen this before? Thanks for your time. |
|
October 7, 2012, 08:12 |
|
#127 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Hae you tried executing /bin/sh in the terminal?
__________________
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 |
||
October 7, 2012, 09:24 |
|
#128 | |
New Member
Max
Join Date: Aug 2012
Posts: 6
Rep Power: 14 |
Quote:
The following link is the one I referred to: http://bhou.wordpress.com/2011/09/13...mac-os-x-lion/ Any suggestions? |
||
October 7, 2012, 12:00 |
|
#129 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Try whether /bin/sh is still a valid shell because the output you posted suggests otherwise (try to execute it) like I suggested above. My guess is that something went wrong during the execution of the installation (which you probably did with sudo): /bin/sh was overwritten by a malfunctioning script for instance. That is one of the reason why one should use a package manager like MacPorts, Fink or HomeBrew to install additional command-line software like gnuplot on Mac OS X: for gnuplot Mac OS X is just another architecture and not regularly tested whereas with MacPort you can be sure that it was installed on Mac OS X at least once
__________________
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 |
||
October 7, 2012, 23:00 |
|
#130 | |
New Member
Max
Join Date: Aug 2012
Posts: 6
Rep Power: 14 |
Quote:
Yeah, I think I did type sudo to get the gnuplot installed..Does that mean I will have to re-install open foam?!.. |
||
October 8, 2012, 04:58 |
|
#131 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Then you're exactly the kind of person that should use a package manager like MacPorts, Fink or Homebrew (Google them) to install stuff like Gnuplot (those people who "know about programming" usually use them .... because they know)
Quote:
Don't think so. The problem started with the gnuplot installation if I understand you correctly. But trying a reinstall can't hurt
__________________
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 |
||
October 8, 2012, 09:31 |
|
#132 | |
New Member
Max
Join Date: Aug 2012
Posts: 6
Rep Power: 14 |
Quote:
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12) Copyright (C) 2007 Free Software Foundation, Inc. Does that mean the shell is overwritten?... Sorry to annoy you, but I really hope not to go through that painful installation process, any way to replace the shell? |
||
October 8, 2012, 20:04 |
|
#133 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
I have no idea what the problem could be. Google for "bash bad interpreter permission denied" and you'll find all kinds of solutions (but I haven't got the time to sort out which one fits your 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 |
||
October 9, 2012, 08:07 |
New version of the patch - Setting NaN
|
#134 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Hi!
One missing feature was the support of the FOAM_SETNAN environment variable (this is mainly for people developing). I attach two patch files: - one with the patch implementing this feature (it assumes that the rest has been already applied) - a complete patch (the old patch plus the the above patch plus minor adaptions) The patch overrides the way memory is allocated and only has been tested on 10.7 (things are a little bit different on 10.6 and older - it SHOULD take care of it). I only have this machine so I can't test on different OS-versions If somebody who already has a working version of OF on a Mac and either 10.6 or older or 10.8 (or newer ) could test it I would be grateful: - apply feature patch - recompile OF - run a tutorial case - export FOAM_SETNAN=1 - run a tutorial case If the last step fails (process hangs etc) unapply the patch and report. Of course: if it works (especially on 10.8) please report too Bernhard PS: Newcomers who have a non 10.7-system should use the old version of the patch until there is a positive feedback for their OS-version
__________________
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; October 9, 2012 at 08:12. Reason: Warning for Newbies |
|
October 12, 2012, 07:01 |
|
#135 |
Guest
Posts: n/a
|
hello everybody,
i just wanted to compile and run openfoam but there are so many errors that i stopped the compilation. i don't know how to solve the problem, can you guys please help me? thanks... first error: Making all in mca/vprotocol/pessimist CC mca_vprotocol_pessimist_la-vprotocol_pessimist.lo In file included from vprotocol_pessimist.c:11:0: vprotocol_pessimist.h:20:52: fatal error: vprotocol_pessimist_sender_based_types.h: No such file or directory compilation terminated. make[3]: *** [mca_vprotocol_pessimist_la-vprotocol_pessimist.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 the rest of the make.log is attached... |
|
October 12, 2012, 07:46 |
|
#136 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
But I can't comment on this because I use the MPI supplied by MacPorts (I prefer to compile as little as possible myself). Maybe you'll have a look in the regular OpenMPI-channels whether there are problems with compilation on a Mac
__________________
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 |
||
October 12, 2012, 07:57 |
|
#137 | |
Guest
Posts: n/a
|
Quote:
|
||
October 12, 2012, 09:18 |
|
#138 | |
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 |
||
October 12, 2012, 09:23 |
|
#139 | |
Guest
Posts: n/a
|
Quote:
|
||
October 12, 2012, 16:58 |
|
#140 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@matzbanni: From your log, while building "libtriSurface.dylib", this happened: Quote:
How many cores did you specify in "WM_NCOMPPROCS"? And how many does your machine have? And how much RAM? As for Open-MPI: apparently the instructions do not specify how to tell OpenFOAM and wmake which MPI version to be looking for Since I don't have a Mac to confirm this... Please try this and let us know if it works:
Bruno
__________________
|
||
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 |