CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Installation problems

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2006, 12:08
Default Hi, I'm installing OpenFOAM f
  #1
New Member
 
Shelley Nation
Join Date: Mar 2009
Posts: 8
Rep Power: 17
shellbell1999 is on a distinguished road
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.
shellbell1999 is offline   Reply With Quote

Old   April 6, 2006, 12:21
Default Hi Shelley, Something seem t
  #2
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
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 is offline   Reply With Quote

Old   April 6, 2006, 12:32
Default Sorry, you should not need to
  #3
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
Sorry, you should not need to download paraview again! just the java-archive which didn't work.
hemph is offline   Reply With Quote

Old   April 6, 2006, 12:59
Default Thank you for your help, and w
  #4
New Member
 
Shelley Nation
Join Date: Mar 2009
Posts: 8
Rep Power: 17
shellbell1999 is on a distinguished road
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
shellbell1999 is offline   Reply With Quote

Old   April 6, 2006, 13:14
Default The installation expects OpenF
  #5
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
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?
hemph is offline   Reply With Quote

Old   April 6, 2006, 13:22
Default Yes I did, I put source pack a
  #6
New Member
 
Shelley Nation
Join Date: Mar 2009
Posts: 8
Rep Power: 17
shellbell1999 is on a distinguished road
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
shellbell1999 is offline   Reply With Quote

Old   April 6, 2006, 13:35
Default ok, so far so good. You need t
  #7
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
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?
hemph is offline   Reply With Quote

Old   April 6, 2006, 13:56
Default before I used the command tar
  #8
New Member
 
Shelley Nation
Join Date: Mar 2009
Posts: 8
Rep Power: 17
shellbell1999 is on a distinguished road
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.
shellbell1999 is offline   Reply With Quote

Old   April 6, 2006, 14:12
Default I see now, you installed into
  #9
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
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.
hemph is offline   Reply With Quote

Old   April 6, 2006, 14:29
Default Good call! Once I did that I w
  #10
New Member
 
Shelley Nation
Join Date: Mar 2009
Posts: 8
Rep Power: 17
shellbell1999 is on a distinguished road
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!
shellbell1999 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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
Problems with installation jonititan OpenFOAM Installation 4 November 6, 2005 05:16


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