CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Critical errors on gcc and icofoam (https://www.cfd-online.com/Forums/openfoam-installation/57363-critical-errors-gcc-icofoam.html)

giuliano January 10, 2008 17:26

Hello OpenFOAM Gurus, I am
 
Hello OpenFOAM Gurus,

I am trying to install OpenFOAM but I don't seem to have much success. That is why I turn to you, who might disclose the "secrets of the gods" to me. Anyways, jokes aside, I get two critical errors when I run foamInstallationTest (see results below).

as for gcc I downloaded the pack from the OpenFOAM website and gcc is indeed in the path /utrc/home/ccamantig/OpenFOAM/linux/gcc-4.2.1/bin/gcc

as for icoFoam I tar-ed the binary pack as the instructions specify.

Any suggestions?


Checking basic setup...
-------------------------------------------------------------------------------
Shell: csh
Host: linux46.res.utc.com
OS: Linux version 2.4.21-4.ELsmp
User: amantig
User_config: /utrc/home/ccamantig/.cshrc
Foam_config: /utrc/home/ccamantig/.OpenFOAM-1.4.1/cshrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /utrc/home/ccamantig/OpenFOAM yes yes
$WM_PROJECT_USER_DIR ...ome/ccamantig/OpenFOAM/amantig-1.4.1 yes no
$FOAM_JOB_DIR /utrc/home/ccamantig/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 ...me/ccamantig/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 ...mantig/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 ...amantig/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 ...FOAM/amantig-1.4.1/lib/linuxGccDPOpt yes yes no
$LAM_ARCH_PATH --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 3.2.3
WARNING: Conflicting installations:
foam settings: /utrc/home/ccamantig/OpenFOAM/linux/gcc-4.2.1/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java *** not installed ***

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

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


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


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
...g_linux46.res.utc.com 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.

giuliano January 11, 2008 16:51

Thank you, I solved it.
 
Thank you, I solved it.

cesarbz June 25, 2008 02:29

Well, my dear friend... may be
 
Well, my dear friend... may be you could solved it... But I had the same problem and I didnt solve yet.

please, any suggest.

thanks.

markusrehm June 25, 2008 03:14

Hello Cesar, try which
 
Hello Cesar,

try

which gcc

according to your error message it should point to /usr/bin/gcc. Re-source the foam-environment by

. ~/.bashrc

and do "which gcc" again. Now the foam-gcc path should be displayed.

Now it should work.

If foamInstallationTest doesn't run successfully afterwards check the environment variable with

echo $WM_COMPILER_DIR

and have a look if it points to the correct directory (e.g. using "ls ...").


Regards Markus

cesarbz June 25, 2008 14:31

OK, thanks a lot. I follow yo
 
OK, thanks a lot.
I follow your advice and reading something I sow the problem was the directory's names.
I solved it changing the directory names, I write:

linux instead linux64

gcc-4.1.0-64 instead gcc-4.1.0

whit this two changes I solve the problem. Note that this is for OpenFOAM 1.3

After that I run the foamInstallationTest and I have just one "CRITICAL ERROR" (also in Software Version part), this is:

-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.0 /home/cebz/OpenFOAM/linux/gcc-4.1.0-64/bin/gcc
java 1.4.2_05 /home/cebz/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
gzip 1.3.12 /usr/bin/gzip
tar 1.3.12 /bin/tar
icoFoam *** not installed ***
CRITICAL ERROR

I am sure that exist the icoFoam directory and is in :
/home/cebz/OpenFOAM/cebz-1.3/run/tutorials/icoFoam

Well, this is about foamInstalationTest.

When I try to generate the mesh for cavity I have the followin:

cebz@cebz:~> run
cebz@cebz:~/OpenFOAM/cebz-1.3/run> cd tutorials/
cebz@cebz:~/OpenFOAM/cebz-1.3/run/tutorials> cd icoFoam/
cebz@cebz:~/OpenFOAM/cebz-1.3/run/tutorials/icoFoam> blockMesh . cavity
bash: blockMesh: command not found

And when i try to run FoamX...

cebz@cebz:~/OpenFOAM/cebz-1.3/run/tutorials/icoFoam> FoamX
Starting NameServer with inet:cebz:1234 ...
/home/cebz/OpenFOAM/OpenFOAM-1.3/bin/runFoamXHB: line 122: nsd: command not found.

I really don't know why is that. The fact is the foamInstallationTest say that I have just one critical error.


All times are GMT -4. The time now is 21:29.