|
[Sponsors] |
October 25, 2005, 21:21 |
This problem arises because i'
|
#1 |
New Member
Jonathan Gerald Pelham
Join Date: Mar 2009
Posts: 9
Rep Power: 17 |
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 |
|
October 26, 2005, 06:59 |
Unfortunately (or fortunately,
|
#2 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
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. |
|
October 26, 2005, 14:23 |
Open a terminal and write: ech
|
#3 |
Senior Member
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17 |
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. |
|
November 6, 2005, 03:26 |
I have followed the steps in t
|
#4 |
New Member
Siddhartha Jain
Join Date: Mar 2009
Posts: 6
Rep Power: 17 |
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. |
|
November 6, 2005, 05:16 |
Sorry for the double post.
I
|
#5 |
New Member
Siddhartha Jain
Join Date: Mar 2009
Posts: 6
Rep Power: 17 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installation problems | indy | OpenFOAM Installation | 7 | April 3, 2009 10:40 |
Installation problems | ianz8802 | OpenFOAM Installation | 37 | January 30, 2009 14:20 |
Installation Problems | honcho | OpenFOAM Installation | 0 | January 14, 2008 11:48 |
Problems on 64bit Installation | Dietmar Schmidt | Siemens | 4 | April 18, 2007 07:36 |
Installation problems | shellbell1999 | OpenFOAM Installation | 9 | April 6, 2006 14:29 |