|
[Sponsors] |
September 14, 2011, 05:40 |
|
#21 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
@old files: have you tried at the Sourceforge (the original foam project). Usually there is a history of all there is @timeline: No. Once I know what the problem is I can assess how long it takes |
||
September 14, 2011, 10:56 |
|
#22 |
New Member
Nathan Woods
Join Date: Sep 2011
Posts: 2
Rep Power: 0 |
It fails on hunk 4 at 200.
I'd give you an exact quote, but I don't have the disk image ready anymore. The error wasn't really much more than that, anyway. |
|
September 14, 2011, 15:07 |
|
#23 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Code:
@@ -206,7 +217,10 @@ # this needs generalizing makeFile=../../etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM - + if [ "$WM_ARCH_BASE" == "darwin" ] + then + makeFile=../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM + fi if [ -f $makeFile -a ! -f Makefile.inc ] then rm -f Makefile.inc I currently don't have time to look at Thirdparty-2.0.1 (let alone recompile it). But if only this chunk fails things are not that bad: The Makefile for Darwin should have been produced by the patch. Have a look at Allwmake how makeFile is set now and point it to the darwin file. Bernhard |
||
September 19, 2011, 09:04 |
|
#24 |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 15 |
Hi I'm new hire and first of all sorry for my bad english...
My problem is: I can not give openFOAM commands -I installed OpenFOAM 2.0.1 with patches and Gcc46 on Lion 10.7.1, like sushant describes. -After compile twice I had no error massage anymore. -bashrc load if I start Terminal. For example I tryed blockMesh in the tutorials but I always get the answer "command not found". Do anyone have any idea? Benny |
|
September 19, 2011, 10:19 |
|
#25 | |
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17 |
Quote:
Code:
find $FOAM_INST_DIR/$WM_PROJECT-$WM_PROJECT_VERSION/platforms | grep -w blockMesh echo $FOAM_APPBIN echo $PATH
__________________
If you only have a hammer, you tend to see every problem as a nail. |
||
September 19, 2011, 11:53 |
|
#26 |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 15 |
Thanks Sushant,
I added this in my ".profile": hdiutil attach "$HOME/OpenFOAM/Mac-OF-2.0.dmg" -mountpoint "$HOME/OpenFOAM" > /dev/null . ~/OpenFOAM/OpenFOAM-2.0.1/etc/bashrc Locks like it works (no error message by starting Terminal) The output from your Code: bennyskiste:~ Benny$ find $FOAM_INST_DIR/$WM_PROJECT-$WM_PROJECT_VERSION/platforms | grep -w blockMesh bennyskiste:~ Benny$ echo $FOAM_APPBIN /Users/Benny/OpenFOAM/OpenFOAM-2.0.1/platforms/darwinIntel64GccDPOpt/bin bennyskiste:~ Benny$ echo $PATH /Users/Benny/OpenFOAM/ThirdParty-2.0.1/platforms/darwinIntel64Gcc/paraview-3.10.1/bin:/Users/Benny/OpenFOAM/ThirdParty-2.0.1/platforms/darwinIntel64Gcc/openmpi-1.5.3/bin:/Users/Benny/OpenFOAM/Benny-2.0.1/platforms/darwinIntel64GccDPOpt/bin:/Users/Benny/OpenFOAM/site/2.0.1/platforms/darwinIntel64GccDPOpt/bin:/Users/Benny/OpenFOAM/OpenFOAM-2.0.1/platforms/darwinIntel64GccDPOpt/bin:/Users/Benny/OpenFOAM/OpenFOAM-2.0.1/bin:/Users/Benny/OpenFOAM/OpenFOAM-2.0.1/wmake:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin ??? |
|
September 19, 2011, 11:54 |
|
#27 |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 15 |
double post because my internet made some problems...
|
|
September 20, 2011, 06:15 |
|
#28 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
September 20, 2011, 07:55 |
|
#29 |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 15 |
Could be a problem that I built not just the Gcc46 but also Gcc45?
ls $FOAM_APPBIN -> no answare LS $FOAM_APPBIN dummy libsolid.dylib libODE.dylib libsolidMixtureProperties.dylib libOSspecific.o libsolidProperties.dylib libdistributionModels.dylib libspecie.dylib libfileFormats.dylib libsurfMesh.dylib libkineticTheoryModel.dylib libthermophysicalFunctions.dylib libliquidMixtureProperties.dylib libtriSurface.dylib libliquidProperties.dylib postCalc.o libmolecularMeasurements.dylib |
|
September 20, 2011, 09:11 |
|
#30 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
./Allwmake 2>&1 | tee compile.log Then have a look at compile.log FROM THE TOP and report the first error you see (don't bother to post the whole log. I won't look at it) |
||
September 20, 2011, 09:33 |
|
#31 |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 15 |
my first errors:
configure: error: in `/Users/Benny/OpenFOAM/ThirdParty-2.0.1/openmpi-1.5.3': configure: error: C compiler cannot create executables You can get the whole compile.log file by using this link: https://dataexchange.hs-bremen.de/exchange?g=3fsdnh |
|
September 20, 2011, 12:24 |
|
#32 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
September 20, 2011, 14:03 |
|
#33 | |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 15 |
Quote:
... ---> Building gcc44 A question about the patches: I still use the path site/2.0.x for prefs.sh even though I'm unsung 2.0.1 ? That's the result of the ThirdParty-patch: patching file Allwmake Hunk #3 succeeded at 199 with fuzz 1 (offset 3 lines). Hunk #4 FAILED at 220. 1 out of 5 hunks FAILED -- saving rejects to file Allwmake.rej patching file etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM Last edited by xtphgu; September 20, 2011 at 14:50. |
||
September 21, 2011, 06:44 |
|
#34 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
About the patch. I've been told that the patch doesn't work with 2.0.1 but I haven't got the time to look into it. I remembered discussing it elsewhere (I think even in this thread). Have a look |
||
September 21, 2011, 08:34 |
|
#35 | |
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17 |
Quote:
As for your multiple compilers issue, I prefer to have ONE compiler, one text editor, one music player, one web browser, one girl, and so on and so forth; but I see that it makes sense for many people to need to have more than one. (compiler ). Sometimes it's easy to troubleshoot where there is only one possible culprit in each category, so if you don't really need it, you can do away with the multiple compilers. If you're wondering if the site/prefs.sh is doing its job, you can use this alternative: put these lines in ~/.profile before you source bashrc: export WM_MPLIB=OPENMPI #only for Lion; for SL stick to SYSTEMOPENMPI export WM_COMPILER=Gcc46 In any case, gcc-mp-4.6 is not working on your system (that's what your log seems to say), so you can check with the commands: gcc-mp-4.6 -v g++-mp-4.6 -v and also maybe make sure your disk image isn't read-only? --- Others: while we're on this subject, what is the simplest way to tell wmake to use clang instead of the stock gcc? Does OF-2.0.x build successfully with the stock clang on OS X? Regards, Sushant
__________________
If you only have a hammer, you tend to see every problem as a nail. |
||
September 21, 2011, 13:30 |
|
#36 | |||
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 15 |
Quote:
Quote:
Quote:
Error: Target org.macports.build returned: shell command failed (see log for details) Log for gcc46 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org _release_tarballs_ports_lang_gcc46/gcc46/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> Hier the whole Log: https://dataexchange.hs-bremen.de/exchange?g=e5yr2l It is a sparseimage. Thanks a lot for all your help!!!! Benny One More question: Why do I need Xcode, Gcc46 and compiling it if I just want to use the program OpenFOAM? |
||||
September 22, 2011, 02:23 |
|
#37 | ||||
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17 |
Quote:
Quote:
in the site/2.0.x/prefs.sh, or my nonstandard, possibly ugly way is to set that in ~/.profile itself. Either way, you can always 'echo $WM_MPLIB' before doing ./Allwmake to verify. Quote:
Quote:
For OS X 10.6, see the link in my signature for a binary image.
__________________
If you only have a hammer, you tend to see every problem as a nail. |
|||||
September 22, 2011, 11:27 |
|
#38 | ||
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 15 |
Quote:
I downloaded the image from http://sourceforge.net/projects/macopenfoam/files/ and OF works unfortunately the command 'mpirun' can not find??? Quote:
|
|||
September 22, 2011, 13:40 |
|
#39 | ||
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17 |
Quote:
Quote:
You need the newer gcc because stock apple gcc is too old to compile this.
__________________
If you only have a hammer, you tend to see every problem as a nail. |
|||
September 22, 2011, 14:58 |
|
#40 | |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 15 |
Do you think that will change soon? You know CFD calculation needs a lot of computing resources
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fluent @ Mac OSx | ignazio | FLUENT | 12 | July 25, 2017 08:03 |
foamToTecplot360 on mac osx 10.6 SL | mohanamuraly | OpenFOAM | 0 | April 27, 2011 01:26 |
Mac OSX and Homebrew | egp | OpenFOAM Installation | 1 | February 15, 2011 11:21 |
OpenFOAM13 for Mac OSX Darwin 104 | hjasak | OpenFOAM Installation | 70 | September 24, 2010 06:06 |
OpenFOAM on mac OSX | Nick Colam | Main CFD Forum | 3 | January 27, 2009 01:06 |