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 |
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. |
Quote:
Code:
@@ -206,7 +217,10 @@ 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 |
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 |
Quote:
Code:
find $FOAM_INST_DIR/$WM_PROJECT-$WM_PROJECT_VERSION/platforms | grep -w blockMesh |
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 ??? |
double post because my internet made some problems...
|
Quote:
|
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 |
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) |
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 |
Quote:
|
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 |
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 |
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 :p ). 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 |
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 Quote:
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? |
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. |
Quote:
I downloaded the image from http://sourceforge.net/projects/macopenfoam/files/ and OF works :):):D unfortunately the command 'mpirun' can not find??? Quote:
|
Quote:
Quote:
You need the newer gcc because stock apple gcc is too old to compile this. |
Quote:
Quote:
|
All times are GMT -4. The time now is 22:00. |