CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Problems with installation (http://www.cfd-online.com/Forums/openfoam-installation/57704-problems-installation.html)

jonititan October 25, 2005 20:21

This problem arises because i'
 
This problem arises because i've very little experience with linux
i'm unable to complete the install as i do not understand the instructions past unpacking the files
this i don't understand

a) EITHER, if running bash or ksh (if in doubt type 'echo $SHELL'),
source the .OpenFOAM-1.2/bashrc file by adding the following line to
the end of your $HOME/.bashrc file:

. $HOME/OpenFOAM/OpenFOAM-1.2/.OpenFOAM-1.2/bashrc

Then update the environment variables by sourcing the $HOME/.bashrc
file by typing in the terminal:
. $HOME/.bashrc

i also don't understand how the program is run generally
i'm sorry to show my ignorance but i really need to get this program up and running for my university project

eugene October 26, 2005 05:59

Unfortunately (or fortunately,
 
Unfortunately (or fortunately, depending on your perspective) you will need at least a modicum of knowledge regarding linux enviroments to use OpenFOAM.

OpenFOAM is a command line based package (although FoamX does provide some GUI functionality), so I suggest you get an introductory linux textbook. Everything will become clear a day or two after you start reading. After you have completed the tutorials you should feel right at home.

Good luck.

billy October 26, 2005 13:23

Open a terminal and write: ech
 
Open a terminal and write: echo $SHELL. Press enter and see if says something with bash or ksh.

Mine gives: /bin/bash. So if it is bash:

Type in terminal (If you are familiar with windows these two text editors are like notepad and the terminal is like msdos) (the & sign is to run the program in the background so you can keep typing commands into the terminal):

gedit $HOME/.bashrc &

or

kate $HOME/.bashrc &

once in gedit or kate program, copy and paste:

. $HOME/OpenFOAM/OpenFOAM-1.2/.OpenFOAM-1.2/bashrc

save and exit.

Then you type in the terminal:

. $HOME/.bashrc

or you can log out and back in.

As Eugene said you should read the installation guide and documentation.

sidgalt November 6, 2005 02:26

I have followed the steps in t
 
I have followed the steps in the installation guide. Unfortunately, when I run the foamInstallationTest, it gives the following message. I am trying to install OpenFoam 1.2. The order of folder hierachy is
$HOME/OpenFOAM/OpenFOAM-1.2. Inside OpenFOAM1.2 is a folder linux in which are three folders

gcc-4.0.1
j2sdk1.4.2_05
paraview2.2.0

Please help



THE MESSAGE
Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux
OS: Linux version 2.6.13-15-smp
User: tomsawyer
User_config: /home/tomsawyer/.bashrc
FATAL ERROR: /home/tomsawyer/.OpenFOAM-1.1/bashrc does not appear to be sourced from:
/home/tomsawyer/.bashrc

You need the following at the end of your /home/tomsawyer/.bashrc file:
. /home/tomsawyer/OpenFOAM/OpenFOAM-1.1/.OpenFOAM-1.1/bashrc
or equivalent depending on the location of the OpenFOAM installation.


FATAL ERROR Foam install directory not set.

Set correct path to installation 'WM_PROJECT_INST_DIR' in /home/tomsawyer/.foam2.3/bashrc
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR --------- env variable not set --------- yes
$WM_PROJECT_USER_DIR --------- env variable not set --------- no
$FOAM_JOB_DIR --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR --------- env variable not set --------- yes

$FOAM_USER_APPBIN --------- env variable not set --------- no
$FOAM_APPBIN --------- env variable not set --------- yes
$WM_DIR --------- env variable not set --------- yes
$FOAMX_PATH --------- env variable not set --------- yes
$CEI_HOME --------- env variable not set --------- no

$JAVA_PATH --------- env variable not set --------- no
$MICO_ARCH_PATH --------- env variable not set --------- 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 --------- env variable not set --------- yes
$FOAM_USER_LIBBIN --------- env variable not set --------- no
$LAM_ARCH_PATH --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.0.2
WARNING: Conflicting installations:
foam settings: /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.4.2_06
WARNING: Conflicting installations:
foam settings: /usr/lib/jvm/java/bin/java
current path : /usr/bin/java

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

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


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


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_linux 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.

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

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

The foam installation contains 2 critical error(s).

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

sidgalt November 6, 2005 04:16

Sorry for the double post. I
 
Sorry for the double post.
I changed the version number in the foamInstallation Test file from 1.1 to 1.2. NOw the fatal error has gone but the 2 critical errors are still there. THis is the output.

Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux
OS: Linux version 2.6.13-15-smp
User: tomsawyer
User_config: /home/tomsawyer/.bashrc
Foam_config: /home/tomsawyer/.OpenFOAM-1.2/bashrc sourced correctly.

FATAL ERROR Foam install directory not set.

Set correct path to installation 'WM_PROJECT_INST_DIR' in /home/tomsawyer/.foam2.3/bashrc
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR --------- env variable not set --------- yes
$WM_PROJECT_USER_DIR --------- env variable not set --------- no
$FOAM_JOB_DIR --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR --------- env variable not set --------- yes

$FOAM_USER_APPBIN --------- env variable not set --------- no
$FOAM_APPBIN --------- env variable not set --------- yes
$WM_DIR --------- env variable not set --------- yes
$FOAMX_PATH --------- env variable not set --------- yes
$CEI_HOME --------- env variable not set --------- no

$JAVA_PATH --------- env variable not set --------- no
$MICO_ARCH_PATH --------- env variable not set --------- 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 --------- env variable not set --------- yes
$FOAM_USER_LIBBIN --------- env variable not set --------- no
$LAM_ARCH_PATH --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.0.2
WARNING: Conflicting installations:
foam settings: /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.4.2_06
WARNING: Conflicting installations:
foam settings: /usr/lib/jvm/java/bin/java
current path : /usr/bin/java

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

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


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


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_linux 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.


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