|
[Sponsors] |
September 23, 2009, 17:38 |
|
#21 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
What is the output of "echo $FOAM_APPBIN" and "which blockMesh"? If one of both doesn't give you a path, rerun foamInstallationTest and post the output.
|
|
September 23, 2009, 17:54 |
|
#22 |
Member
Join Date: May 2009
Posts: 54
Rep Power: 17 |
"which blockMesh" does not give an output. Here is the output of foamInstallationTest
Code:
Executing /home/greg/OpenFOAM/OpenFOAM-1.6.x/bin/foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: greg-laptop OS: Linux version 2.6.24-24-generic ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/greg/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/greg/OpenFOAM/greg-1.6.x yes no $WM_THIRD_PARTY_DIR /home/greg/OpenFOAM/ThirdParty-1.6.x yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/greg/OpenFOAM/OpenFOAM-1.6.x yes yes yes $FOAM_APPBIN ...1.6.x/applications/bin/linuxGccDPOpt yes yes yes $FOAM_SITE_APPBIN ...penFOAM/site/1.6.x/bin/linuxGccDPOpt no no $FOAM_USER_APPBIN ...1.6.x/applications/bin/linuxGccDPOpt no no $WM_DIR /home/greg/OpenFOAM/OpenFOAM-1.6.x/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...OAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt yes yes yes $FOAM_SITE_LIBBIN ...penFOAM/site/1.6.x/lib/linuxGccDPOpt no no $FOAM_USER_LIBBIN ...penFOAM/greg-1.6.x/lib/linuxGccDPOpt no no $MPI_ARCH_PATH ...penmpi-1.3.3/platforms/linuxGccDPOpt yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- gcc 4.3.3 ...OAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux/bin/gcc gzip 1.3.12 /bin/gzip tar 1.19 /bin/tar icoFoam 1.6.x .../OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/icoFoam ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. Critical systems ok. done. Code:
greg@greg-laptop:~$ echo $FOAM_APPBIN /home/greg/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt |
|
September 23, 2009, 18:10 |
|
#23 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Ok, so the paths and environment variables seem ok, but the binary is missing. I think something must have gone wrong during compiling. Go to /home/greg/OpenFOAM/OpenFOAM-1.6.x/applications/ and execute ./Allwmake. If that doesn't give any errors the binary should be there afterwards.
I'm using OF-1.5 but this should be the same for 1.6.x. |
|
September 23, 2009, 18:46 |
|
#24 |
Member
Join Date: May 2009
Posts: 54
Rep Power: 17 |
That managed to fix it. Thank you very much.
-Greg |
|
September 24, 2009, 14:28 |
|
#26 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Oh by the way Mads, I just noticed you should make the script exit if an error occurs at any point; e.g. compiling doesn't make sense if the script bails at the git checkout for some reason.
|
|
September 30, 2009, 14:49 |
|
#28 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
set -e is probably the most straightforward way to make bash exit on errors. Just include that somewhere at the top of the script.
|
|
October 1, 2009, 01:38 |
|
#29 |
Senior Member
Phoevos
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
Hi,
I have tried your script for the OpenFoam v1.6.x installation. In the end when the foamInstallationTest runs I get the following results: Code:
Executing /home/fivos/OpenFOAM/OpenFOAM-1.6.x/bin/foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: fivos-desktop OS: Linux version 2.6.27-14-generic ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/fivos/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/fivos/OpenFOAM/fivos-1.6.x no no $WM_THIRD_PARTY_DIR /home/fivos/OpenFOAM/ThirdParty-1.6.x yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/fivos/OpenFOAM/OpenFOAM-1.6.x yes yes yes $FOAM_APPBIN ...6.x/applications/bin/linux64GccDPOpt yes yes yes $FOAM_SITE_APPBIN ...nFOAM/site/1.6.x/bin/linux64GccDPOpt no no $FOAM_USER_APPBIN ...6.x/applications/bin/linux64GccDPOpt no no $WM_DIR .../fivos/OpenFOAM/OpenFOAM-1.6.x/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...M/OpenFOAM-1.6.x/lib/linux64GccDPOpt yes yes yes $FOAM_SITE_LIBBIN ...nFOAM/site/1.6.x/lib/linux64GccDPOpt no no $FOAM_USER_LIBBIN ...FOAM/fivos-1.6.x/lib/linux64GccDPOpt no no $MPI_ARCH_PATH ...nmpi-1.3.3/platforms/linux64GccDPOpt yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- gcc 4.3.3 ...M/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/bin/gcc gzip 1.3.12 /bin/gzip tar 1.20 /bin/tar icoFoam 1.6.x ...penFOAM-1.6.x/applications/bin/linux64GccDPOpt/icoFoam ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. Critical systems ok. done. Code:
fivos@fivos-desktop:~/OpenFOAM/OpenFOAM-1.6.x$ echo $FOAM_APPBIN /home/fivos/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt make[1]: Leaving directory `/home/fivos/OpenFOAM/OpenFOAM-1.6.x/applications/........' And in the end : make: Target `application' not remade because of errors. (Also in the make.log there is the same thing) However when I give the blockMesh, or checkMesh, icoFoam commands for example they are recognised. So the questions are : - Why do I get these 'no' at the foamInstallationTest, are these normal? - Why there are errors during make in the applications folder? Any help is appreciated. PS : I forgot to mention I am using the 64 - bit script since I am using Ubuntu 8.10 64 bit. Last edited by fivos; October 1, 2009 at 05:03. |
|
October 1, 2009, 19:46 |
|
#30 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Phoevos, my reply with ./Allwmake was very specific to gfilip's problem. Are you having the same problem? Why are you trying to recompile the applications directory? Nobody will be able to tell you why you are getting errors making the applications directory without knowing the errors (to my knowledge there are no psychics on the forum :P).
What makes you think your OpenFOAM installation isn't functional? |
|
October 2, 2009, 02:47 |
|
#31 |
Senior Member
Phoevos
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
As far as I have tested OpenFOAM seems to work.
But why are these no's from the foamInstallationTest, is this normal? As regards for the error during (re)build, I dont know why it was caused and I dont have any clue of what exactly is happening - I get this line (make: Target `application' not remade because of errors) at the end of the make.log after building all files, without any information about what these errors might be, or any more clues. I have not been able to test OpenFOAM extensively, to make sure if it works or not. All commands, that I have tested till now work, so maybe there isnt any problem in the installation at all and these errors might be trivial for OpenFOAM's operation. I apologise if my first message was vague, I believe that now I have made clear what bothers me. Last edited by fivos; October 2, 2009 at 06:33. |
|
October 3, 2009, 07:06 |
|
#32 |
Senior Member
Phoevos
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
After using OpenFOAM a bit, I believe that it is working normally. So ignore my previous messages.
Anyway thank you Madsr for your nice script! |
|
October 6, 2009, 21:17 |
hi
|
#33 |
Member
sarangarajan
Join Date: Sep 2009
Posts: 31
Rep Power: 17 |
~/OpenFOAM/OpenFOAM-1.6.x$ ./Allwmake >make.log 2>&1 I am getting stuck at this point.. does it take a long time for this step to complete?..thanks in advance.it is in the same step for more than 20 mins. is it normal? or shall I close it
Last edited by sarajags_89; October 6, 2009 at 21:35. |
|
October 7, 2009, 02:14 |
|
#34 |
New Member
Dalibor
Join Date: Mar 2009
Location: Sweden
Posts: 8
Rep Power: 17 |
It took more than 3 h on my computer to compile everything
|
|
October 7, 2009, 18:49 |
|
#36 |
Member
sarangarajan
Join Date: Sep 2009
Posts: 31
Rep Power: 17 |
hi it took 3hrs .. When I start paraview from the cavity case file I get the following msg " A reader for cavity.Openfoam could not be found" please select one of the following.
1.protein data bank files plot 3d files digital elevation map files stereo lithography gaussian cube files raw(binary files) pop ocean files AVS UCD binary /ASCII files SESAME comma -separated grid files MFIX unstructured grid files fluent case files openfoam files cosmology files Which one do i select !!! thanks in adv cheers sarang |
|
October 8, 2009, 03:58 |
|
#37 | |
New Member
Matthew Philpott
Join Date: Aug 2009
Location: Belgium
Posts: 24
Rep Power: 17 |
Quote:
__________________
CAELinux 2009 + OF1.5 Ubuntu 9.04 x64 (jaunty jackalope) + OF1.6 |
||
October 8, 2009, 05:06 |
|
#38 |
New Member
Join Date: Mar 2009
Posts: 27
Rep Power: 17 |
Thanks for the script!
|
|
October 8, 2009, 09:10 |
|
#39 | |
Member
Join Date: May 2009
Posts: 54
Rep Power: 17 |
Quote:
Hi Sarang, I had the same issue. All you have to do is compile the PV3 OF file reader (even though it is showing up on the list) through: Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader ./Allwclean ./Allwmake Hope it helps. -Greg |
||
October 8, 2009, 09:17 |
|
#40 | |
New Member
M. Li
Join Date: Apr 2009
Posts: 13
Rep Power: 17 |
Quote:
The installation of OpenFOAM1.6 is successful. Thank you again! Last edited by cnlimin; October 9, 2009 at 09:01. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
install OpenFoam 1.6 by building source: how? | niudie | OpenFOAM Installation | 13 | April 26, 2011 01:48 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 15:43 |
install openfoam 1.6 on opensuse 11.0 | andresbh | OpenFOAM Installation | 8 | September 30, 2009 01:48 |
Install openFOAM 1.6 on debian 32bit - blockMesh: command not found | fossy | OpenFOAM Installation | 1 | August 28, 2009 05:06 |
Install of OpenFOAM 1.6 Error 1 Error 2 & run tutorial | potac | OpenFOAM Installation | 3 | August 27, 2009 10:04 |