CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   CRITICAL ERROR on installation OpenFOAM 141 (http://www.cfd-online.com/Forums/openfoam-installation/57473-critical-error-installation-openfoam-141-a.html)

nuovodna September 29, 2007 14:09

I have download the linux 32bi
 
I have download the linux 32bit version and unpack them in the correct directory in my home. I've tried the 64 bit version (i've an AMD64) but the output is the same. I'm on Archlinux 64bit. I hope
you solve me this problem: i must use openfoam for
my thesis.
Here is the output of foamInstallationTest:
[john@myhost OpenFOAM]$ foamInstallationTest
Executing /home/john/OpenFOAM/OpenFOAM-1.4.1/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: myhost
OS: Linux version 2.6.22-ARCH
User: john
User_config: /home/john/.bashrc
Foam_config: /home/john/.OpenFOAM-1.4.1/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/john/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/john/OpenFOAM/john-1.4.1 yes no
$FOAM_JOB_DIR /home/john/OpenFOAM/jobControl no yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/john/OpenFOAM/OpenFOAM-1.4.1 yes yes yes

$FOAM_USER_APPBIN ...4.1/applications/bin/linux64GccDPOpt yes yes no
$FOAM_APPBIN ...4.1/applications/bin/linux64GccDPOpt yes yes yes
$WM_DIR /home/john/OpenFOAM/OpenFOAM-1.4.1/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH .../john/OpenFOAM/linux64/j2sdk1.4.2_05 no no
$MICO_ARCH_PATH ...ico-2.3.12/platforms/linux64GccDPOpt no yes
$LAM_ARCH_PATH .../lam-7.1.2/platforms/linux64I64DPOpt no yes
$MPICH_ARCH_PATH --------- env variable not set --------- no
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...M/OpenFOAM-1.4.1/lib/linux64GccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...nFOAM/john-1.4.1/lib/linux64GccDPOpt yes yes no
$LAM_ARCH_PATH .../lam-7.1.2/platforms/linux64I64DPOpt no yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.2.1
WARNING: Conflicting installations:
foam settings: /home/john/OpenFOAM/linux64/gcc-4.2.1/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.6.0_02
WARNING: Conflicting installations:
foam settings: /home/john/OpenFOAM/linux64/j2sdk1.4.2_05/bin/java
current path : /opt/java/jre/bin/java

gzip 1.3.12 /bin/gzip
tar 1.3.12 /bin/tar
icoFoam *** not installed ***
CRITICAL ERROR

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


Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_myhost No_entry_for_"myhost"_in_/etc/hosts yes
WARNING: CRITICAL ERROR

Pinging_localHost Successful yes
Test_rsh: No_telnet_running:_cannot_check* yes
Test_ssh: No_telnet_running:_cannot_check* yes
FATAL ERROR: No remote shell available.
Foam1.4.1 enviroment requires either ssh and/or rsh.
Contact your system administrator.


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

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

The foam installation contains 3 critical error(s).

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

msrinath80 September 30, 2007 15:59

First, for 64 bit set the WM_6
 
First, for 64 bit set the WM_64 env variable in ~/.bashrc to something say 'on'. i.e.

export WM_64=on

Next, install openssh. OpenFoam needs this for parallel runs.

Make sure that gcc,paraview and java are located in a directory called linux64 not just linux.

marhamat October 18, 2007 11:30

Hi everybody I get some erro
 
Hi everybody
I get some errors when OF-1.4.1 installation.
You see the message in konsole
...
curvedEdges/curvedEdge.C:96: error: class 'Foam::curvedEdge' does not have any field named 'end_'
curvedEdges/curvedEdge.C:96: error: 'const class Foam::curvedEdge' has no member named 'end_'
curvedEdges/curvedEdge.C: At global scope:
curvedEdges/curvedEdge.C:101: error: expected constructor, destructor, or type conversion before '<' token
curvedEdges/curvedEdge.C:109: error: expected constructor, destructor, or type conversion before '<' token
curvedEdges/curvedEdge.C:183: error: expected `}' at end of input
make[3]: *** [Make/linuxGccDPOpt/curvedEdge.o] Error 1
make[3]: Leaving directory `/home/hydrolab/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/generation/b lockMesh'
make[2]: *** [blockMesh] Error 2
make[2]: Leaving directory `/home/hydrolab/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh/generation'
make[1]: *** [generation] Error 2
make[1]: Leaving directory `/home/hydrolab/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh'
make: *** [mesh] Error 2
+ '[' 0 = 1 -a '' = doc ']'

Regards
Marhamat

msrinath80 October 18, 2007 11:44

" error: expected `}' at end o
 
" error: expected `}' at end of input "

suggests that there is a syntax issue with your blockMeshDict. Please check it again. You seem to be missing a '}' somewhere.

msrinath80 October 18, 2007 11:48

Oops, hold on. I just realized
 
Oops, hold on. I just realized that this has nothing to do with blockMeshDict. Why are you trying to build the mesh utilities anyway?

marhamat October 19, 2007 03:48

Thanks alot Srinath If not,
 
Thanks alot Srinath

If not,so what i mus do?
sorry for this question.

msrinath80 October 19, 2007 07:04

Are you building OpenFOAM from
 
Are you building OpenFOAM from scratch?

marhamat October 19, 2007 08:43

I have used OF-1.3 & linux 32b
 
I have used OF-1.3 & linux 32bit version before.
But now i want to try OF-1.4.1 64bit version
on new system.
So after unpacking the files i used ./Allwmake for OF installation according to readme.

msrinath80 October 19, 2007 09:15

Not necessary. If you download
 
Not necessary. If you download the 64 bit binary packs you can directly start using OpenFOAM. Please do not rebuild the distribution unless it is absolutely necessary. It is non-trivial. In most cases, all you will need to build are some custom utilities and customized solvers. This can be done using the binary distribution.

marhamat October 19, 2007 09:36

Thanks Srinath You see outp
 
Thanks Srinath

You see output of foamInstallationTest:

hydrolab@hydrolab:~/OpenFOAM/OpenFOAM-1.4.1/bin> foamInstallationTest
Executing /home/hydrolab/OpenFOAM/OpenFOAM-1.4.1/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: hydrolab
OS: Linux version 2.6.22.9-0.4-default
User: hydrolab
User_config: /home/hydrolab/.bashrc
Foam_config: /home/hydrolab/.OpenFOAM-1.4.1/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/hydrolab/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/hydrolab/OpenFOAM/hydrolab-1.4.1 yes no
$FOAM_JOB_DIR /home/hydrolab/OpenFOAM/jobControl no yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/hydrolab/OpenFOAM/OpenFOAM-1.4.1 yes yes yes

$FOAM_USER_APPBIN ...1.4.1/applications/bin/linuxGccDPOpt yes yes no
$FOAM_APPBIN ...1.4.1/applications/bin/linuxGccDPOpt yes yes yes
$WM_DIR ...drolab/OpenFOAM/OpenFOAM-1.4.1/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH ...ydrolab/OpenFOAM/linux/j2sdk1.4.2_05 no no
$MICO_ARCH_PATH .../mico-2.3.12/platforms/linuxGccDPOpt no yes
$LAM_ARCH_PATH --------- env variable not set --------- yes
$MPICH_ARCH_PATH --------- env variable not set --------- no
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...OAM/hydrolab-1.4.1/lib/linuxGccDPOpt yes yes no
$LAM_ARCH_PATH --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc ...figure
WARNING: Conflicting installations:
foam settings: /home/hydrolab/OpenFOAM/linux/gcc-4.2.1-64/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.5.0_13
WARNING: Conflicting installations:
foam settings: /home/hydrolab/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
current path : /usr/bin/java

gzip 1.3.12 /usr/bin/gzip
tar 1.3.12 /bin/tar
icoFoam *** not installed ***
CRITICAL ERROR

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


Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_hydrolab Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the Foam enviroment.

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

Base configuration ok.

The foam installation contains 2 critical error(s).

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

With kind regards
Marhamat

msrinath80 October 19, 2007 09:53

You have not sourced the OpenF
 
You have not sourced the OpenFOAM bashrc properly.

Add the following lines to /home/hydrolab/.bashrc

# Set 64 option to true for OpenFOAM
export WM_64=on

# Add OpenFOAM bashrc settings
. $HOME/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc

And please make sure that the OpenFOAM/linux64 directory exists and has the following folders in it:

1. gcc-4.2.1
2. j2sdk1.4.2_05
3. paraview-2.4.4

These packages can be obtained from the OpenFOAM download page.

marhamat October 19, 2007 10:08

Thanks again I didn't set 64
 
Thanks again
I didn't set 64 option true for OpenFOAM
Now FoamX don't start correctly :

hydrolab@hydrolab:~> FoamX
Starting NameServer with inet:hydrolab:1234 ...
Starting FoamX Host Browser with inet:hydrolab:1234 ...
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : FoamXHostBrowser
Date : Oct 19 2007
Time : 17:54:27
Host : hydrolab
PID : 27062
Root :
Case :
Nprocs : 1
HostBrowser running.....
Setting LANG to en_EN
Using jar /home/hydrolab/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/preProcessing/Foam X/lib/FoamX.jar
Using jar /home/hydrolab/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/preProcessing/Foam X/lib/jlfgr-1_0.jar
java: xcb_xlib.c:52: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
/home/hydrolab/OpenFOAM/OpenFOAM-1.4.1/bin/FoamX: line 244: 27066 Aborted $jdkhome/bin/java -cp "$jars" -DFoamX.SystemPath=$WM_PROJECT_DIR -DFoamX.SystemConfigPath=$FOAMX_CONFIG -DFoamX.UserConfigPath=$FOAMX_CONFIG FoamX.App $orbArgs $args
/home/hydrolab/OpenFOAM/OpenFOAM-1.4.1/bin/runFoamXHB: line 139: 27062 Killed FoamXHostBrowser -ORBNamingAddr $myIOP
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 27058).
/home/hydrolab/OpenFOAM/OpenFOAM-1.4.1/bin/runFoamXHB: line 66: 27058 Killed nsd -ORBIIOPAddr $myIOP --ior $FOAMX_CONFIG/ns.ref < /dev/null

msrinath80 October 19, 2007 21:19

Apparently you are having the
 
Apparently you are having the same problem as Pablo in the following thread:

http://www.cfd-online.com/OpenFOAM_D...es/1/4492.html

Please go to ~/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/preProcessing/FoamX and execute ./Allwmake there. That should rebuild FoamX.

marhamat October 20, 2007 03:05

FoamX is up to date ,But nothi
 
FoamX is up to date ,But nothing changes. )-:

msrinath80 October 20, 2007 13:02

Sorry I cannot help you furthe
 
Sorry I cannot help you further. Please search the Preprocessing/FoamX forum and see if you can find some solution to your problem.

mbeaudoin October 20, 2007 16:27

Just for fun, What is the o
 
Just for fun,

What is the output of foamInstallationTest once your OpenFOAM setup is sourced?

What is the result of the following command:
which java
Martin

marhamat October 22, 2007 08:28

Thanks again Srinath The ou
 
Thanks again Srinath
The output of foamInstallationTest :

Base configuration ok.

Critical systems ok.


hydrolab@linux-zah4:~> which java
/home/hydrolab/OpenFOAM/linuxAMD64/j2sdk1.4.2_05/bin/java

Did anybody test OF-1.4.1 0n OpenSUSE-10.3?

With kind regards
Marhamat

alberto October 23, 2007 18:36

I'm using it on 32 bit success
 
I'm using it on 32 bit successfully without recompiling it, and it works.

OpenSUSE 10.3 comes with gcc 4.2.1, which is the same version provided with OpenFOAM 1.4.1.

You can use the JVM installed on the system by setting JAVA_HOME to

- 32 bit: /usr/lib/jvm/java
- 64 bit: /usr/lib64/jvm/java

About java on opensuse 10.3, pay attention to the fact that the last patch (17 or 23 october) caused an issue with symbolic links. The fix is reported here: http://dev-loki.blogspot.com/2007/10...-opensuse.html

I'll try to recompile it, but it should work out of the box, being the compiler the same.

With kind regards,
Alberto

lakeat October 29, 2007 21:28

Marhamat, Glad to know you
 
Marhamat,

Glad to know you here! But i am just to beginner of OFhttp://www.cfd-online.com/OpenFOAM_D...part/happy.gif
Well, my opinion is not to use FoamX!
Sorry to give you such suggestion.http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

I think I can do most of the jobs without FoamX, to fix FoamX is just a time-consuming task for me, as I can remember, it failed to work for some net-setting reason, so try to figure it out, and the net-setting is not just a matter of OpenFOAM itself, it is also related to your machine, eg, I am using Fedora, not OpenSUSE 10 as used by the founder of OpenFOAM, I had to install some thing more for the system.

After one month or two try to use FoamX....
Don't be disturbed by the FoamX, if you wantto work out your thesis, just make sure blockMesh & icoFoam and paraview to work. concerning foamInstallationTest, I dont use them any more.
so, move on...


Best wishes,
Daniel

balkrishna March 22, 2010 23:36

CRITICAL Error message
 
On running foamInstallationTest i get the following output :
Code:

Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:              tramesh-desktop
OS:                Linux version 2.6.31-14-generic
-------------------------------------------------------------------------------


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

$FOAM_APPBIN        ...M-1.6/applications/bin/linuxGccDPOpt  yes  yes  yes
$FOAM_SITE_APPBIN    .../OpenFOAM/site/1.6/bin/linuxGccDPOpt  no        no
$FOAM_USER_APPBIN    ...h-1.6/applications/bin/linuxGccDPOpt  yes  yes  no
$WM_DIR              .../tramesh/OpenFOAM/OpenFOAM-1.6/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        ...nFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt  yes  yes  yes
$FOAM_SITE_LIBBIN    .../OpenFOAM/site/1.6/lib/linuxGccDPOpt  no        no
$FOAM_USER_LIBBIN    ...enFOAM/tramesh-1.6/lib/linuxGccDPOpt  no        no
$MPI_ARCH_PATH      ...penmpi-1.3.3/platforms/linuxGccDPOpt  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.3
        User version    : 4.4.1
        Minimum required: 4.3.1

gcc      4.4.1   
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/tramesh/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux/bin/gcc
          current path            : /usr/bin/gcc
          CRITICAL ERROR

gzip    1.3.12    /bin/gzip                                               
tar      1.22      /bin/tar                                               
icoFoam         
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/tramesh/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/icoFoam
          current path            :
          CRITICAL ERROR

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


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 2 critical error(s).

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

done.



All times are GMT -4. The time now is 11:50.