errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04
4 Attachment(s)
Hey guys,
I'm new to this forum, and i hope, this is the right place, to ask you for some help concerning the compilation and installation process of OpenFOAM-1.7.x on ubuntu 10.04 LTS. I compiled OpenFOAM and paraFOAM step by step and running Code:
foamInstallationtest So after searching the forums here, i installed additional packages found here http://www.cfd-online.com/Forums/ope...tml#post268828 posted by wyldckat and run ./Allwmake in the app-directory again. This time, it showed the eror: Code:
make: Target `application' not remade because of errors. So i tried to follow instructions found in several forums (i.e. here: http://www.cfd-online.com/Forums/ope...se-errors.html), but none seems to work. By the way, my gcc version is over 4.3.1. After this, i went back to run foamInstallationtest (see attachments), and this time it showed no critical errors. So i tried to use the commands as "simpleFoam, blockMesh, paraFoam". The only one, that was recognized by the terminal, was the command paraFoam, the others were ignored (by using tab). Nevertheless, paraFoam is not found and cannot open, allthough it was compiled correctly i think, and i also updated my . ~/.bashrc file. (Also you might see attachments for this.) My questions: It seems, that my application directory is still not compiled correctly? Maybe I should remove the whole compiled OpenFoam folder and restart the whole process. But, how do I do that, since terminal does not want to give me permission to delete it (will it work properly by usind root rights with sudo -s?) Is it possible, that - as i previously read somewhere in this forum - the source code thit not unpack correctly before starting the compilation? So, maybe the whole source directory is not working properly? Do you have any other ideas, what I could do? Additional packages previously installed were also: Code:
binutils binutils-dev bison bisonc++ build-essential cmake cmake-curses-gui flex gcc git-core libibverbs-dev libqt4-dev qt4-dev-tools libreadline5-dev mpi-default-dev python-dev subversion wget zlib1g-dev I added the first log files of ./Allwmake of source and application directories in attachments too. Please help me :) kind regards Florian |
Greetings Florian and welcome to the forum!
Well, I'm a bit confused by your post and attachments. They seem to contradict each other in some points... because icoFoam does seem to have built properly and to be accessible... And the log files you attached do not give any error indication. So, lets go by parts:
Bruno |
1 Attachment(s)
Dear Bruno,
Thank you alot for the fast answering!:) You already helped me alot! I am sorry for the confusing post!
I did check simple operations as Code:
simpleFoam I attached the log file anyways.
Code:
cd $WM_THIRD_PARTY_DIR Code:
root@futech-laptop:~/floFOAM/pitzDaily_mittel# paraFoam Code:
./makeParaView -mpi > logparaview & Kind Regards Florian |
Hi Florian,
OK, the latest log doesn't present any noticeable errors, so all seems to be ok. As for ParaView, I should have explained something: the "2>&1" is a stream redirection (if I'm not mistaken on the terminology), which redirects the stderr output to the standard output stdout. In other words, redirects the stream 2 (error outputs) to the stream 1 (standard output). This is indicated after the redirection into make.log. As I've shown before: Code:
./Allwmake > make.log 2>&1 Sooo, my long explanation was just to say this - run makeParaView like this: Code:
./makeParaView -mpi > buildPV.log 2>&1 As for errors, the usual tell tale expression is "Error ", including the space, when something goes wrong during the build of OpenFOAM or ParaView. Good luck! Best regards, Bruno |
1 Attachment(s)
Hi Bruno,
Thank you again for the answer and the explanation!:) Now I compiled paraview 3.8.0 succesfully, or so it says in the logfile I attached. Unfortunately, at the time I did not redirect the error messages to this log as you recommended in your last post. Problem: When I open paraview by the command paraFoam, paraview cannot show the case, it does not load it, it even tells me, that there is nor reader, and i should select one. I know, this is a common bug, but I did not find any way in this forum to solve this problem that I can reproduce with success... What I did after compiling paraview 3.8.0: I compiled and installed pvFoamReader by using the following code: Code:
mkdir ~/OpenFOAM/pvFoamReader to Code:
paraviewPath="`$HOME/OpenFOAM/ThirdParty-1.7.x/platforms/build-linux64Gcc/paraview-3.8.0/bin/paraview`" Code:
alias pvFoam=’$HOME/OpenFOAM/pvFoamReader/source/pvFoam -case $PWD’ Code:
futech@futech-laptop:~$ bash Should I compile paraview 3.8.0 again by creating a logfile as you recommended, or do you see my fault by any chance? I hope, I am not too annoying, and thank you again for the help! Regards Florian |
Hi Florian,
Wow, you're over-complicating it! ;) OK, you already know that there are 2 available readers, right? The one from Takuya (that I believe you got from the SVN) and the one from OpenCFD that comes with OpenFOAM. So, in that order, I'll explain:
Best regards, Bruno |
Hey Bruno,
I forgot to post a million thanks to you for your kind help. After all i managed to install everything properly. It was a big mistake of mine too to install the first parts of OpenFoam Utilies as ROOT. I added to your reputation! Kind regards, Florian |
Hi Florian,
You are most welcome and I'm glad I was able to help :) And thanks for the rep points :) Best regards, Bruno |
All times are GMT -4. The time now is 06:31. |