|
[Sponsors] |
![]() |
![]() |
#21 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,226
Rep Power: 50 ![]() ![]() |
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 |
||
![]() |
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
![]() |
#23 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,226
Rep Power: 50 ![]() ![]() |
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 |
||
![]() |
![]() |
![]() |
![]() |
#24 |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 14 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#25 | |
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 16 ![]() |
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. |
||
![]() |
![]() |
![]() |
![]() |
#26 |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 14 ![]() |
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 ??? |
|
![]() |
![]() |
![]() |
![]() |
#27 |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 14 ![]() |
double post because my internet made some problems...
|
|
![]() |
![]() |
![]() |
![]() |
#28 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,226
Rep Power: 50 ![]() ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#29 |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 14 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#30 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,226
Rep Power: 50 ![]() ![]() |
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) |
||
![]() |
![]() |
![]() |
![]() |
#31 |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 14 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#32 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,226
Rep Power: 50 ![]() ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#33 | |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 14 ![]() |
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 13:50. |
||
![]() |
![]() |
![]() |
![]() |
#34 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,226
Rep Power: 50 ![]() ![]() |
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 |
||
![]() |
![]() |
![]() |
![]() |
#35 | |
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 16 ![]() |
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 ![]() 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. |
||
![]() |
![]() |
![]() |
![]() |
#36 | |||
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 14 ![]() |
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? |
||||
![]() |
![]() |
![]() |
![]() |
#37 | ||||
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 16 ![]() |
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. |
|||||
![]() |
![]() |
![]() |
![]() |
#38 | ||
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 14 ![]() |
Quote:
I downloaded the image from http://sourceforge.net/projects/macopenfoam/files/ and OF works ![]() ![]() ![]() unfortunately the command 'mpirun' can not find??? Quote:
|
|||
![]() |
![]() |
![]() |
![]() |
#39 | ||
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 16 ![]() |
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. |
|||
![]() |
![]() |
![]() |
![]() |
#40 | |
New Member
Benjamin Stanke
Join Date: Sep 2011
Posts: 18
Rep Power: 14 ![]() |
Do you think that will change soon? You know CFD calculation needs a lot of computing resources
![]() Quote:
![]() |
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
fluent @ Mac OSx | ignazio | FLUENT | 12 | July 25, 2017 07:03 |
foamToTecplot360 on mac osx 10.6 SL | mohanamuraly | OpenFOAM | 0 | April 27, 2011 00:26 |
Mac OSX and Homebrew | egp | OpenFOAM Installation | 1 | February 15, 2011 10:21 |
OpenFOAM13 for Mac OSX Darwin 104 | hjasak | OpenFOAM Installation | 70 | September 24, 2010 05:06 |
OpenFOAM on mac OSX | Nick Colam | Main CFD Forum | 3 | January 27, 2009 00:06 |