CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2010, 08:05
Default 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: 15
ftec is on a distinguished road
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
showed one critical error, which said, that the path to "icoFoam" did not exist.

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.
and quit the compilation of application directory.

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 did compile paraview 3.8.0 using mpi support.

I added the first log files of ./Allwmake of source and application directories in attachments too.

Please help me


kind regards

Florian
Attached Images
File Type: jpg commands unknown.jpg (86.0 KB, 13 views)
File Type: jpg foamInstallationtest.jpg (56.8 KB, 5 views)
Attached Files
File Type: gz logapp.tar.gz (10.8 KB, 1 views)
File Type: gz logsrc.tar.gz (13.6 KB, 2 views)
ftec is offline   Reply With Quote

Old   November 11, 2010, 12:52
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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:
  • Please run again Allwmake, but like this:
    Code:
    cd $WM_PROJECT_DIR
    ./Allwmake > make.log 2>&1
    This way you'll make a full log of the whole build process, including error messages.
  • As for ParaView: how exactly did you build it? Did you use makeParaView that is in the ThirdParty folder? And how do you know that you built it with success?
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 11, 2010, 15:41
Default
  #3
New Member
 
Florian Wilsch
Join Date: Nov 2010
Posts: 5
Rep Power: 15
ftec is on a distinguished road
Dear Bruno,

Thank you alot for the fast answering!
You already helped me alot!

I am sorry for the confusing post!

  • I did run the script you postet, and attached the log file that has been created.
Please look for the file, its seems, that there is no error this time.

I did check simple operations as
Code:
simpleFoam
checkMesh
blockMesh
They worked all fine on some random case, i had created some other day.

I attached the log file anyways.

  • paraview:
It seems, that paraview has not been created properly indeed. I just thought, that it had been, because it gave me no error message, when i run
Code:
cd $WM_THIRD_PARTY_DIR
./makeParaView -mpi
But, Terminal still keeps telling me the following:

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
So, it has not been created properly? At the moment, i run the following script

Code:
 ./makeParaView -mpi > logparaview &
and if it continues not working, I will post it to this thread.

Kind Regards

Florian
Attached Files
File Type: gz make.log.tar.gz (44.4 KB, 5 views)
ftec is offline   Reply With Quote

Old   November 11, 2010, 18:52
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
means that it redirects 1 to make.log and 2 to 1, therefore all standard output goes to make.log.

Sooo, my long explanation was just to say this - run makeParaView like this:
Code:
./makeParaView -mpi > buildPV.log 2>&1
The name buildPV.log is just a personal force of habit, so you can name it whatever you want

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
__________________
wyldckat is offline   Reply With Quote

Old   November 11, 2010, 19:07
Default
  #5
New Member
 
Florian Wilsch
Join Date: Nov 2010
Posts: 5
Rep Power: 15
ftec is on a distinguished road
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
After the installation was complete, I changed the value of paraviewPath in the file /OpenFOAM/pvFoamReader/source/pvFoam
to
Code:
paraviewPath="`$HOME/OpenFOAM/ThirdParty-1.7.x/platforms/build-linux64Gcc/paraview-3.8.0/bin/paraview`"
and in the ~/.bashrc, I simply added:

Code:
alias pvFoam=’$HOME/OpenFOAM/pvFoamReader/source/pvFoam -case $PWD’
Nevertheless, Terminal always tells me now:

Code:
futech@futech-laptop:~$ bash
bash: alias: -case: not found
bash: alias: /home/futech’: not found
I am pretty sure, that I named the right paths, so could there be any other reason for bash and paraFoam not working as they should?

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
Attached Files
File Type: gz logparaview.tar.gz (96.3 KB, 6 views)
ftec is offline   Reply With Quote

Old   November 11, 2010, 20:17
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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:
  1. That reader you are trying to build, is already built within ParaView, starting the version 3.8.0! The correct file extension for using that reader is ".foam". To use it by default in paraFoam, follow the instructions in the point 7 in this blog post of mine: Using the official pre-built ParaView 3.8.0 version with OpenFOAM...
  2. The official reader that comes with OpenFOAM can be built by following the instructions near the end of the page from where you followed the initial instructions:
    Quote:
    Originally Posted by http://www.openfoam.com/download/source.php#x4-21000
    The PV3blockMeshReader and the PV3FoamReader ParaView plugins are compiled as usual for OpenFOAM utilities:
    Code:
    cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
    ./Allwclean
    ./Allwmake
    Ah, almost forgot: this plugin uses the file extension ".OpenFOAM".
So there you go, the two versions of plugins are explained

Best regards,
Bruno
__________________

Last edited by wyldckat; November 11, 2010 at 20:20. Reason: see "Ah, almost forgot:"
wyldckat is offline   Reply With Quote

Old   February 23, 2011, 04:55
Default
  #7
New Member
 
Florian Wilsch
Join Date: Nov 2010
Posts: 5
Rep Power: 15
ftec is on a distinguished road
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
ftec is offline   Reply With Quote

Old   February 23, 2011, 07:07
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Florian,

You are most welcome and I'm glad I was able to help
And thanks for the rep points

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 22:13.