|
[Sponsors] |
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 11, 2010, 08:05 |
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04
|
#1 |
New Member
Florian Wilsch
Join Date: Nov 2010
Posts: 5
Rep Power: 16 |
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 |
|
November 11, 2010, 12:52 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
November 11, 2010, 15:41 |
|
#3 |
New Member
Florian Wilsch
Join Date: Nov 2010
Posts: 5
Rep Power: 16 |
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 checkMesh blockMesh I attached the log file anyways.
Code:
cd $WM_THIRD_PARTY_DIR ./makeParaView -mpi Code:
root@futech-laptop:~/floFOAM/pitzDaily_mittel# paraFoam created temporary 'pitzDaily_mittel.OpenFOAM' /home/futech/OpenFOAM/OpenFOAM-1.7.x/bin/paraFoam: 142: paraview: not found Code:
./makeParaView -mpi > logparaview & Kind Regards Florian |
|
November 11, 2010, 18:52 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
November 11, 2010, 19:07 |
|
#5 |
New Member
Florian Wilsch
Join Date: Nov 2010
Posts: 5
Rep Power: 16 |
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 cd ~/OpenFOAM/pvFoamReader svn co https://of-interfaces.svn.sourceforge.net/svnroot/of-interfaces/trunk /vtkPOpenFOAMReader mv vtkPOpenFOAMReader source ccmake source # I let the programm ccmake find the right path automatically by typing 'c' and 'c' # again, then 'g' to exit and save. # By doing so, the programm searched for some paths, which seemed to be # correct, and so I did not care any further. make make install 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 bash: alias: -case: not found bash: alias: /home/futech’: not found 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 |
|
November 11, 2010, 20:17 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
Last edited by wyldckat; November 11, 2010 at 20:20. Reason: see "Ah, almost forgot:" |
||
February 23, 2011, 04:55 |
|
#7 |
New Member
Florian Wilsch
Join Date: Nov 2010
Posts: 5
Rep Power: 16 |
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 |
|
February 23, 2011, 07:07 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Florian,
You are most welcome and I'm glad I was able to help And thanks for the rep points Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM installation problem. File missing in wmake | shangzung | OpenFOAM Installation | 1 | July 8, 2010 11:57 |
Installation of OpenFOAM-1.6 on Ubuntu 9.10 | marval | OpenFOAM Installation | 2 | March 17, 2010 09:33 |
Installation of OpenFoam 15 Compilation paraview | soeren_brot | OpenFOAM Installation | 45 | January 12, 2009 07:39 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |