CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM-1.5-dev (http://www.cfd-online.com/Forums/openfoam-installation/85521-openfoam-1-5-dev.html)

lulo February 28, 2011 09:52

OpenFOAM-1.5-dev
 
Hi everyone.

I am a beginner either with OpenFOAM and UBUNTU 10.04.
I am trying to install OpenFOAM in UBUNTU and when I run the installation test I got the following message:

Executing /home/lulo/OpenFOAM/OpenFOAM-1.5-dev/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: lulo-desktop
OS: Linux version 2.6.32-28-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/lulo/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/lulo/OpenFOAM/lulo-1.5-dev yes no
$WM_THIRD_PARTY_DIR /home/lulo/OpenFOAM/ThirdParty 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/lulo/OpenFOAM/OpenFOAM-1.5-dev yes yes yes

$FOAM_APPBIN ...dev/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_USER_APPBIN ...dev/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR ...lulo/OpenFOAM/OpenFOAM-1.5-dev/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 ...OpenFOAM-1.5-dev/lib/linux64GccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...OAM/lulo-1.5-dev/lib/linux64GccDPOpt yes yes no
$MPI_ARCH_PATH ...nmpi-1.2.6/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.1
User version : ../src/configure
4.4.3
Minimum required: 4.2.0

gcc ...figure
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /bin/gzip
tar 1.22 /bin/tar
icoFoam 1.5-dev ...nFOAM-1.5-dev/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_lulo-desktop Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Unsuccessful_connection_refused* yes
FATAL ERROR: No remote shell available.
OpenFOAM 1.5-dev enviroment requires either ssh and/or rsh.
Contact your system administrator.


-------------------------------------------------------------------------------

The system test has evoked 1 fatal error(s).

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.



Does anyone know how to correct the critical error I get in the third party installation?

Thanks a lot

Luca Locatelli

wyldckat February 28, 2011 10:13

Greetings Luca and welcome to the forum!

Quote:

Originally Posted by lulo (Post 297295)

gcc ...figure
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

No need to worry. That error can be ignored safely, since it's in fact just an old bug in the original scripts.

Best regards,
Bruno

PS: when you write/edit a post here in the blog in advanced mode, the button with the # symbol is for posting code ;) But in quick edit mode this button doesn't appear :(

lulo February 28, 2011 12:02

Quote:

Originally Posted by wyldckat (Post 297301)
Greetings Luca and welcome to the forum!


No need to worry. That error can be ignored safely, since it's in fact just an old bug in the original scripts.

Best regards,
Bruno

PS: when you write/edit a post here in the blog in advanced mode, the button with the # symbol is for posting code ;) But in quick edit mode this button doesn't appear :(


thanks... then I think my problem is another one.

I am trying to follow the first simple tutorial about cavity flow.
I run 'blockMesh' and it is working, but when i try to run 'paraFoam' it says:

#
lulo@lulo-desktop:~/OpenFOAM/lulo-1.5-dev/FOAM_RUN/tutorials/icoFoam/cavity$ paraFoam
paraview: symbol lookup error: /usr/lib/libmpi_cxx.so.0: undefined symbol: ompi_registered_datareps

#

I thought it was because of the error in the ThirdParty but then it is something else?!?!?!?!:confused:
Any idea???

wyldckat February 28, 2011 13:39

Hi Luca,

Quote:

Originally Posted by lulo (Post 297328)
Code:

lulo@lulo-desktop:~/OpenFOAM/lulo-1.5-dev/FOAM_RUN/tutorials/icoFoam/cavity$ paraFoam
paraview: symbol lookup error: /usr/lib/libmpi_cxx.so.0: undefined symbol: ompi_registered_datareps


How did you install ParaView? Are you using a pre-compiled version or did you compile it yourself? And which version are you using?
And MPI, which did you install in Ubuntu? OpenMPI or MPICH or something else?

Best regards,
Bruno

lulo February 28, 2011 20:28

I have downloaded the third party 'ThirdParty.linux64Gcc.gtgz ' from http://sourceforge.net/projects/foam/files/foam/1.5/ (which include also paraView).

Then I extract the file and './Allwmake'. That is it right??????

wyldckat March 1, 2011 07:03

Hi Luca,

Then that's why you got that crazy error. What happened is this:
  • You got both the source package and binary package for the ThirdParty folder, correct?
  • Then you ran Allwmake in either ThirdParty or OpenFOAM-1.5-dev. Either way, that only builds stuff directly related to OpenFOAM.
  • To build ParaView, you would have to run makeParaView. Otherwise, the ParaView version you have right now is the old binary version that is in the package ThirdParty.linux64Gcc.gtgz. Since it's quite old, it won't work with the more recent Linux versions.
OK, the most simplest solution would be to install the ParaView version made available here: http://www.openfoam.com/download/ubuntu.php

Then... then I'll have to explain with more details later in the day, because right now I don't have the time :(
Basically, I'll sum up the steps you need from this blog post: Using the official pre-built ParaView 3.8.0 version with OpenFOAM...

I'll finish this later! Best regards,
Bruno

lulo March 1, 2011 11:57

Hey Bruno....

No need for further explanation... Paraview is now running and I was able to see the results of my first OpenFoam tutorial...

The error which I got with the third party installation is still there, nevertheless the program is running!

MANY MANY THANKS :)

kurne March 18, 2011 08:18

Dear Luca
I got the same error as you have got.Will you please tell how you have run the paraview in your case.
Thanks In Advance

lulo March 18, 2011 09:18

Hi Kurne

I did the following:

1. Download ParaView, extract it and place it in your home directory (in case you reinstall openFoam you will not need reinstall ParaView)
http://www.paraview.org/paraview/res.../software.html

The program in the package is already compiled so it is ready to use.

2. ONLY IF YOU WANT TO CREATE A SHORTCUT
Open the $HOME/.bashrc file and add the following at the end of the script
alias paraView='/home/lulo/ParaView-3.10.0-RC1-Linux-x86_64/bin/paraview'
REMEMBER TO CHANGE THE NAME OF THE USER DIRECTORY, lulo IN MY CASE
Now run the .bashrc file

3. Remember that paraView read file with ´.foam´ extension. Than we must create a dummy file with extention .foam. In the terminal
.touch CASE_NAME.foam

Hope it was enough!!
Just tell me if something goes wrong

Regards

Luca

kurne March 19, 2011 02:28

Dear Luca
I want to start my problem from beginning and which i have posted here http://www.cfd-online.com/Forums/ope...u-10-04-a.html. Will you please go through it and help me in solving my problem.I have installed all necessary package mention by bruno here http://www.cfd-online.com/Forums/ope...tml#post268828.
Thanks in Advance.


All times are GMT -4. The time now is 02:41.