|
[Sponsors] |
June 19, 2011, 03:19 |
OpenFoam 2.0.0 installation
|
#1 | |
New Member
Join Date: Jun 2011
Posts: 3
Rep Power: 15 |
Hello everyone,
yesterday I tried installing OpenFoam on my computer following the source installation instructions. After building everything the Installation test gives me the following: Quote:
Could someone please explaine what I can do? Do I have to change variables and compile again or can I copy something into the right place? Thank you in advance. Jan |
||
June 19, 2011, 05:55 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Jan and welcome to the forum!
Mmm, I'm guessing that you are using Debian, since your machine is named "debianfam". Did you install the packages that they suggest? Namely: Quote:
Best regards, Bruno
__________________
|
||
June 19, 2011, 06:43 |
|
#3 |
New Member
Join Date: Jun 2011
Posts: 3
Rep Power: 15 |
Thanks for the fast reply.
First, yes I am running a Debian Squeeze, no experimental system. I have checked the requirements before building and also looked at gcc versions if they were new enough for paraview. The foamCheck was ok and said I could go on with the compilation. I added the log file you asked for. Thanks again for all the help. Best regards, Jan |
|
June 19, 2011, 08:46 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Jan,
At least one package is missing: Code:
sudo apt-get install zlib1g-dev I've just reported to them: http://www.openfoam.com/mantisbt/view.php?id=221 If it still doesn't build after installing this package, you know what to do Best regards, Bruno
__________________
|
|
June 19, 2011, 10:43 |
|
#5 |
New Member
Join Date: Jun 2011
Posts: 3
Rep Power: 15 |
That was it, it all works, blockMesh, icoFoam runs. That's great. Thank you so much for the help.
regards Jan |
|
June 19, 2011, 11:57 |
|
#6 |
Senior Member
Phoevos
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
Hi to everyone,
Since there is already a thread for OpenFoam 2.0.0 installation, I would like to ask here my question for OpenFoam. Today I tried to install OpenFoam using the Git repository installation (openfoam 2.0.x) on my ubuntu 8.10 x64bit. My distro is a bit ancient, but as far as I can see from synaptic, I have the necessary libraries, namely : zlib1g-dev build-essential binutils flex cmake libxt-dev libreadline5-dev The only thing I miss is the gnuplot (along with its associated libraries: libwxbase2.6-0 libwxgtk2.6-0 gnuplot-nox gnuplot-x11) During ./Allwmake I face errors. The first one (and I believe the most important) is the following : /home/fivos/OpenFOAM/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/fvMatrixSolve.C:152: error: no matching function for call to 'max(Foam::lduMatrix::solverPerformance&, Foam::lduMatrix::solverPerformance&)' Then more errors emerge, but I believe the root is the error I already mentioned. Has anyone else encountered this error? Any ideas? Could the missing gnuplot libraries bew the problem? Note that I have succesfully installed OpenFoam 1.7.x. Of course I have changed the bashrc entry of OpenFoam to match to the newer installation (2.0.x). Also I attach my error log during ./Allwmake. Thanks in advance |
|
June 19, 2011, 14:17 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Phoevos,
Indeed, Ubuntu 8.10 is a bit of an oldie now (it's hard to believe, since it doesn't feel like it was so long ago...). It has gcc 4.3.1 by default, which is reaaaally on the edge of the acceptable gcc versions! So, the way I see it, you've got at least two options:
Bruno
__________________
|
|
June 19, 2011, 15:30 |
|
#8 |
New Member
Join Date: Oct 2009
Location: Germany
Posts: 20
Rep Power: 17 |
Hi Bruno,
I've tried to install the new OF version 2.0.x too. My problem is that paraFoam doesn't work at all. After compiling paraview I received following message on my terminal: "... [ 99%] Building CXX object Plugins/AnalyzeNIfTIReaderWriter/CMakeFiles/NIfTIWriter.dir/moc_NIfTIWriter_Plugin.cxx.o Linking CXX shared library ../../bin/libNIfTIWriter.so [ 99%] Built target NIfTIWriter [ 99%] Built target GenerateParaViewQHP [ 99%] Compiling Qt help project paraview.qhp /bin/sh: QT_HELP_GENERATOR-NOTFOUND: not found make[2]: *** [Documentation/paraview.qch] Fehler 127 make[1]: *** [Documentation/CMakeFiles/ParaViewOnlineHelp.dir/all] Fehler 2 make: *** [all] Fehler 2 --- Installation complete for paraview-3.10.1 Set environment variables: export ParaView_DIR=/home/aurel/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc/paraview-3.10.1 export PATH=$ParaView_DIR/bin:$PATH export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.10 --- Done" Attached I have also the "foamInstallationTest" in .tar.gz format. IcoForm worked fine, but with paraForm I got following message: "aurel@aurel-desktop:~/OpenFOAM/aurel-2.0.x/run/tutorials/incompressible/icoFoam/cavity$ paraFoam created temporary 'cavity.OpenFOAM' /home/aurel/OpenFOAM/OpenFOAM-2.0.x/bin/paraFoam: 234: paraview: not found aurel@aurel-desktop:~/OpenFOAM/aurel-2.0.x/run/tutorials/incompressible/icoFoam/cavity$ " Hope you find an answer for my problem. Regards Marc |
|
June 19, 2011, 15:44 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Marc,
Arg, I hate this bug so much... Quote:
You forgot to mention which Linux distribution you are using. I'll assume it's Ubuntu/Debian and specify the most likely missing package: Code:
sudo apt-get install qt4-dev-tools Bruno
__________________
|
||
June 19, 2011, 15:53 |
|
#10 |
New Member
Join Date: Oct 2009
Location: Germany
Posts: 20
Rep Power: 17 |
Hi Bruno,
thanks for your promt reply. Right now I'm installing everything new on my new computer. My Ubuntu version is 10.04. LTD. Do you think I have to repeat the complete git reposition installation? qt4-dev-tools are already on my system. Best regards Marc |
|
June 19, 2011, 16:01 |
|
#11 |
Senior Member
Phoevos
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
Dear Bruno,
Thank you very much for your assistance. I have tried with export WM_COMPILER=Gcc43, but I still had the same problem. However I have access to the Icc, so I gave it a try. Till now it seems to compile well. I have to mention that I faced an error when compiling scotch : + make prefix=/home/fivos/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Icc/scotch_5.1.11 libdir=/home/fivos/OpenFOAM/ThirdParty-2.0.x/platforms/linux64IccDPOpt/lib/openmpi-1.5.3 includedir=/home/fivos/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Icc/scotch_5.1.11/include/openmpi-1.5.3 install cp: cannot stat `../bin/[agm]*': No such file or directory make: [install] Error 1 (ignored) but the compilation process says it is ignored and keeps going without any other errors (I remember I had some issues with scotch when I was trying to compile openfoam 1.6.ext). After compilation I will try OpenFoam v2.0 operation, fingers crossed. Else I will keep my old OpenFoam 1.7.x. It seems I need to update my Ubuntu.... Anyway thanks. @Aurel : Even if you cant compile paraFoam, you can still post process your results using paraview. Just after you complete your calculations, use the command foamToVTK to make readable VTK files. Input these files to paraview (which you can get precompiled and ready for use from http://www.paraview.org/) and do your post processing. |
|
June 19, 2011, 16:10 |
|
#12 |
New Member
Join Date: Oct 2009
Location: Germany
Posts: 20
Rep Power: 17 |
Hi fivos,
thanks your your answer. I know the detour with VTK but this is not a straight forward solution. I guess I will repeat the installation of paraview again. Best regards Marc |
|
June 19, 2011, 17:01 |
|
#13 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
@Marc:
Quote:
On the other hand, if only now you installed it, then you'll just have to rebuild ParaView and those who depend on it, namely the OpenFOAM plugins for ParaView. Either way, I'm doing a build on a clean Ubuntu 11.04 inside a Virtual Machine, so I'll be able to figure out what is missing and what not. @Phoevos: Too bad... I would have to check on another VM with Ubuntu 8.10 to try and isolate the problem I can only suppose that gcc 4.3.1 is already outside the supported versions. I think it should at least work with gcc 4.3.3, since it was the version used for OpenFOAM 1.6... Best regards, Bruno
__________________
|
||
June 19, 2011, 17:02 |
|
#14 |
New Member
Join Date: Oct 2009
Location: Germany
Posts: 20
Rep Power: 17 |
Hi together,
I made the installation again with following result: paraFoam started, but with no imported data. An error message appeared behind the paraView/Kitware picture at the beginning of paraView. Attached the terminal prints of the "PV3FoamReader" and the "foamInstallationTest". Hope we will find the bug. Best regards Marc |
|
June 19, 2011, 17:10 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Interesting bug... try starting a new terminal and try those instructions again:
Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers/PV3FoamReader ./Allwclean ./Allwmake
__________________
|
|
June 19, 2011, 19:33 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Marc,
It took longer than I expected. The correct commands are these: Code:
wmSET cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers ./Allwclean ./Allwmake Bruno
__________________
|
|
June 20, 2011, 15:11 |
|
#17 |
New Member
Join Date: Oct 2009
Location: Germany
Posts: 20
Rep Power: 17 |
Hi Bruno,
I'm pretty impressed of your experience in OF. Indeed you figured out my error!! You last advise worked for me. OF_2.0.x is now running. Anyway, I do not understand why this error could occur. I followed exactly the procedure of the git repository. Thank you very much for you assistance. Best regards Marc |
|
June 21, 2011, 04:39 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Marc,
Yeah, one of my strong points with OpenFOAM is installing it... And it was me who reported the multiple corrections to the instructions here: http://www.openfoam.com/mantisbt/view.php?id=221 If you check the instructions again http://www.openfoam.com/download/git.php you'll see that it's now pretty much saying what I said to you Best regards, Bruno
__________________
|
|
June 27, 2011, 05:35 |
problem installing OpenFOAM-2.0.0
|
#19 | |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
Dear Foamers,
I tried to install the newest OpenFOAM version 2.0.0. on our cluster which has SUSE Linux Enterprise 10.0 as system. I have gcc (GCC) 4.4.4 flex 2.5.31 When running foamInstallationTest I get the following output: Quote:
When running ./Allwmake the first error message I get is HTML Code:
lincke@master:~/OpenFOAM/OpenFOAM-2.0.0> ./Allwmake make: Für das Ziel »all« ist nichts zu tun. ======================================== Start ThirdParty Allwmake ======================================== ======================================== Build MPI libraries if required have OPENMPI shared library (openmpi-1.5.3) ======================================== Build Scotch decomposition library scotch_5.1.11 /home/lincke/OpenFOAM/ThirdParty-2.0.0/platforms/linux64Gcc/scotch_5.1.11 scotch header in /home/lincke/OpenFOAM/ThirdParty-2.0.0/platforms/linux64Gcc/scotch_5.1.11/include scotch libs in /home/lincke/OpenFOAM/ThirdParty-2.0.0/platforms/linux64GccDPOpt/lib ======================================== Build PTScotch decomposition library scotch_5.1.11 (uses MPI) /home/lincke/OpenFOAM/ThirdParty-2.0.0/platforms/linux64Gcc/scotch_5.1.11 ptscotch header in /home/lincke/OpenFOAM/ThirdParty-2.0.0/platforms/linux64Gcc/scotch_5.1.11/include/openmpi-1.5.3 ptscotch libs in /home/lincke/OpenFOAM/ThirdParty-2.0.0/platforms/linux64GccDPOpt/lib/openmpi-1.5.3 ======================================== Build malloc optional component was not found ======================================== Build Tecio optional component was not found ======================================== Done ThirdParty Allwmake ======================================== + wmakePrintBuild -check no git description found + /bin/rm -f OpenFOAM/Make/linux64GccDPOpt/global.C + wmakeLnInclude OpenFOAM + wmakeLnInclude OSspecific/POSIX + Pstream/Allwmake + wmake libso dummy '/home/lincke/OpenFOAM/OpenFOAM-2.0.0/platforms/linux64GccDPOpt/lib/dummy/libPstream.so' is up to date. + case "$WM_MPLIB" in + set +x Note: ignore spurious warnings about missing mpicxx.h headers wmake libso mpi make: *** Keine Regel vorhanden, um das Target »/home/fds243/lincke/OpenFOAM/ThirdParty-2.0.0/platforms/linux64Gcc/openmpi-1.5.3/include/mpi.h«, benötigt von »PstreamGlobals.dep«, zu erstellen. Schluss. As the version is quite new I could not find many posts concerning the same problem. I hope someone can help me and even others who have the same error message. Thank you very much in advance! Last edited by Anne Lincke; June 27, 2011 at 05:58. |
||
June 27, 2011, 16:17 |
|
#20 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Anne,
OK, let me roll up my sleeves once again... Quote:
Code:
Software Version Location As for those errors right after the flex line, I'm going to report it on the bug tracker... done. Quote:
OK, lets try this: Code:
foam wclean all src/Pstream ./Allwmake > make.log 2>&1 If this doesn't work, run this: Code:
which cpp Last time I saw something similar, the reason why things weren't working was because a recent version of binutils wasn't built along with the custom gcc... Best regards, Bruno
__________________
|
|||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Critical errors during OpenFoam installation in OpenSuse 11.0 | amscosta | OpenFOAM | 5 | May 1, 2009 15:06 |
OpenFOAM 1.5 installation on OpenSUSE 11.0 | bigphil | OpenFOAM Installation | 16 | April 29, 2009 07:28 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |