CFD Online Discussion Forums

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

shellbell1999 April 6, 2006 11:08

Hi, I'm installing OpenFOAM f
 
Hi,
I'm installing OpenFOAM for my boss and this is my first time using linux and I am quite confused. So far I have downloaded all the files from the website and have decompressed them into the correct folders. When I tried to decompress the gcc file I got this error:

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

I also got that when I tried to decompress the java file. The paraview file decompressed fine. So I tried to keep going and just see what would happen. I am pretty sure I sourced the /.bashrc file correctly. I added this at the end of that file:

source /home/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc

Then when I tried to update the environment variables by running the /.bashrc file it gives me this:

/root/.OpenFOAM-1.3/bashrc: cannot find FOAM installation


/root/.OpenFOAM-1.3/bashrc: cannot find FOAM installation

Again I just kept going with the instructions to see what would happen but when I ran the foamInstallationTest I got this:

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: sentra
OS: Linux version 2.6.5-1.358
User: root
User_config: /root/.bashrc
FATAL ERROR: /root/.OpenFOAM-1.3/bashrc does not appear to be sourced from:
/root/.bashrc

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


FATAL ERROR Cannot find FOAM installation at: /root/OpenFOAM

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


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /root/OpenFOAM no 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 3.3.3
WARNING: Conflicting installations:
foam settings: /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java *** not installed ***

gzip 1.3.3 /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
-------------------------------------------------------------------------------
Pinging_sentra 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 2 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.

If anyone could help me on any of these problems I would greatly appreciate it.
Thanks.

hemph April 6, 2006 11:21

Hi Shelley, Something seem t
 
Hi Shelley,
Something seem to have gone wrong with your download of gcc, you should try downloading it and paraFoam again.

Also it appears that you did not source your .bashrc-file correctly. After you add
. $HOME/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc
to the bottom of your .bashrc-file, you want to open a new terminal window for the changes to take effect. The README file in OpenFOAM-1.3-directory should help you along the way.

hemph April 6, 2006 11:32

Sorry, you should not need to
 
Sorry, you should not need to download paraview again! just the java-archive which didn't work.

shellbell1999 April 6, 2006 11:59

Thank you for your help, and w
 
Thank you for your help, and while that did fix the problems I was having with the gcc and java files, I'm still getting the cannot find FOAM installation error after I try to run the .bashrc file. I tried to close the terminal window and then open a new one, but it still gives me the same error. When I run the foamInstallationTest and it says:

FATAL ERROR Cannot find FOAM installation at: /root/OpenFOAM

Set correct path to installation 'WM_PROJECT_INST_DIR' in /root/.foam2.3/bashrc

would that fix it? If so, how do I do this?

Thanks

hemph April 6, 2006 12:14

The installation expects OpenF
 
The installation expects OpenFOAM-1.3 to be installed in a directory named OpenFOAM for the current user, which in your case happens to be root.

For some reason it does not find the files in that directory. Did you unpack the files as described in http://www.opencfd.co.uk/openfoam/linux.html?

shellbell1999 April 6, 2006 12:22

Yes I did, I put source pack a
 
Yes I did, I put source pack and 2 binary packs in
/home/OpenFOAM
and the 3 other binary packs in
/home/OpenFOAM/linux
which can be seen below:

[root@sentra OpenFOAM]# ls
linux OpenFOAM-1.3.linuxGcc4DPOpt.gtgz
OpenFOAM-1.3 OpenFOAM-1.3.linuxGcc4SPOpt.gtgz
OpenFOAM-1.3.General.gtgz
[root@sentra OpenFOAM]# cd /home/OpenFOAM/linux
[root@sentra linux]# ls
gcc-4.1.0 j2sdk1.4.2_05 paraview-2.4.2
gcc-4.1.0.linux.tgz j2sdk1.4.2_05.linux.tgz paraview-2.4.2.linux.tgz

Thank you for helping me with this

hemph April 6, 2006 12:35

ok, so far so good. You need t
 
ok, so far so good. You need to unzip and unpack the files as well. In the OpenFOAM directory,
type

tar -zxvf OpenFOAM-1.3.linuxGcc4DPOpt.gtgz
tar -zxvf OpenFOAM-1.3.General.gtgz

In the linux subdirectory, you need to do the same thing, but it looks like you already unpacked those files?

shellbell1999 April 6, 2006 12:56

before I used the command tar
 
before I used the command tar xvf <filename>. I tried using that command for all the files again. Then I closed the terminal and tried to call the .bashrc file again and I'm still getting the foam installation error.

hemph April 6, 2006 13:12

I see now, you installed into
 
I see now, you installed into /home/OpenFOAM, but the installation is expecting you to install in your home directory which is /root in this case. You need to move the files to your home directory. Type

mv /home/OpenFOAM /root

in a terminal and then try again.

shellbell1999 April 6, 2006 13:29

Good call! Once I did that I w
 
Good call! Once I did that I went and changed the source call in the .bashrc file and now it all checks out. Thank you so much!


All times are GMT -4. The time now is 04:55.