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/57249-installation-problems.html)

ianz8802 March 7, 2007 00:31

Hi, I'm trying to install O
 
Hi,

I'm trying to install OpenFOAM, its probably my 12th attempt and it has yet to work, and I'm wondering if someone could provide some suggestion as to how this might work out. I'm really in a hurry to get this thing working, pardon me if I don't take the time to read all the previous posts.

This is my first time doing anything in linux, and I downloaded the pentium linux version with the linux binary pack, so far I tried following the instructions in the readme and got as far as running the installation test, and I simply could not get past the two "Critical errors".

I tried extracting the binary file thing both in the OpenFOAM and the OpenFOAM-1.3 folder, and it has not worked out yet. Below is the result from when I put in the OpenFOAM-1.3 folder.

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: localhost.localdomain
OS: Linux version 2.6.19-1.2911.6.4.fc6
User: Ian
User_config: /home/Ian/.bashrc
Foam_config: /home/Ian/.OpenFOAM-1.3/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/Ian/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/Ian/OpenFOAM/Ian-1.3 yes no
$FOAM_JOB_DIR /home/Ian/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 /home/Ian/OpenFOAM/OpenFOAM-1.3 yes yes yes

$FOAM_USER_APPBIN ...-1.3/applications/bin/linuxGcc4DPOpt yes yes no
$FOAM_APPBIN ...-1.3/applications/bin/linuxGcc4DPOpt yes yes yes
$WM_DIR /home/Ian/OpenFOAM/OpenFOAM-1.3/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH /home/Ian/OpenFOAM/linux/j2sdk1.4.2_05 no no
$MICO_ARCH_PATH ...mico-2.3.11/platforms/linuxGcc4DPOpt no yes
$LAM_ARCH_PATH ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes 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 ...FOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt yes yes yes
$FOAM_USER_LIBBIN .../OpenFOAM/Ian-1.3/lib/linuxGcc4DPOpt yes yes no
$LAM_ARCH_PATH ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.1
WARNING: Conflicting installations:
foam settings: /home/Ian/OpenFOAM/linux/gcc-4.1.0/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.4.2
libgcj)
WARNING: Conflicting installations:
foam settings: /home/Ian/OpenFOAM/linux/j2sdk1.4.2_05/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
-------------------------------------------------------------------------------
...localhost.localdomain 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.

I'm really in a hurry to get this thing working. Thanks in advance.

gschaider March 7, 2007 10:39

Just checking: what does ls
 
Just checking: what does

ls $FOAM_APPBIN

say? Is a icoFoam there? If not, then you propably extracted the binaries to the wrong place.

If icoFoam is there, then propably the path is wrong.

liamm March 7, 2007 13:19

I don't know if this will be a
 
I don't know if this will be any help but I used it when I installed OpenFOAM and I was completely new to Linux as well. It gives step by step instructions that are much easier to follow that the readme.

http://doc.gwos.org/index.php/OpenFOAM

ianz8802 March 7, 2007 19:02

Bernhard, nothing shpws up fo
 
Bernhard,
nothing shpws up for the ls $FOAM_APPBIN. so i'll assume that icoFoam is not there.

I think i'll just go through the process again with the guide Liam suggested, that is a lot easier to understand than the readme, and w/luck, i'll get it right.

Thanks for the pointer, its good to know what the problem could be.

Liam,

thanks for the link, that guide looks a lot simpler than the readme. with that I can prb get it right now.

Ian Z.

ianz8802 March 7, 2007 23:09

I tried the installation again
 
I tried the installation again, and ended up with only 1 critical error (icoFoam not installed). I've unpacked the binaries (the gcc, java, parafoam, and the linux binary thing) in the linux subdirectory in the OpenFOAM folder, and so far it yields no results.

Could someone tell me what the problem might be?

here's the result from the foamInstallcheck.

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: localhost.localdomain
OS: Linux version 2.6.19-1.2911.6.4.fc6
User: Ian
User_config: /home/Ian/.bashrc
Foam_config: /home/Ian/.OpenFOAM-1.3/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/Ian/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/Ian/OpenFOAM/Ian-1.3 yes no
$FOAM_JOB_DIR /home/Ian/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 /home/Ian/OpenFOAM/OpenFOAM-1.3 yes yes yes

$FOAM_USER_APPBIN ...-1.3/applications/bin/linuxGcc4DPOpt yes yes no
$FOAM_APPBIN ...-1.3/applications/bin/linuxGcc4DPOpt yes yes yes
$WM_DIR /home/Ian/OpenFOAM/OpenFOAM-1.3/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH /home/Ian/OpenFOAM/linux/j2sdk1.4.2_05 yes yes no
$MICO_ARCH_PATH ...mico-2.3.11/platforms/linuxGcc4DPOpt no yes
$LAM_ARCH_PATH ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes 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 ...FOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt yes yes yes
$FOAM_USER_LIBBIN .../OpenFOAM/Ian-1.3/lib/linuxGcc4DPOpt yes yes no
$LAM_ARCH_PATH ...c/lam-7.1.1/platforms/linuxGcc4DPOpt yes yes yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.0 /home/Ian/OpenFOAM/linux/gcc-4.1.0/bin/gcc
java 1.4.2_05 /home/Ian/OpenFOAM/linux/j2sdk1.4.2_05/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
-------------------------------------------------------------------------------
...localhost.localdomain 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 1 critical error(s).

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

Thanks in advance.

ianz8802 March 7, 2007 23:11

make that paraview.
 
make that paraview.

7islands March 7, 2007 23:40

Hi, if you mean OpenFOAM-1.3.
 
Hi,
if you mean OpenFOAM-1.3.linuxGcc4DPOpt.gtgz and OpenFOAM-1.3.linuxGcc4SPOpt.gtgz by "the linux binary thing," they must be unpacked under ~/OpenFOAM, not ~/OpenFOAM/linux.

ianz8802 March 8, 2007 00:04

Thanks. That worked.
 
Thanks. That worked.

tonitoney March 14, 2007 18:18

Hi. I am having a problem sim
 
Hi.
I am having a problem similar to Ian Zhang's. I installed OpenFOAM 1.3 on an AMD Opteron 64 bit SuSe Linux machine. The critical error I'm getting is the one that says 'icoFOAM' not installed. I installed OpenFOAM-1.3.linux64AMDGcc4DPOpt.gtgz binary file under /home/toni/OpenFOAM. When I type 'echo $FOAM_APPBIN', it shows this directory: /home/toni/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt,
but there is nothing in the directory. Can someone help me with this? Thanks in advance.

tonitoney March 14, 2007 18:45

I just solved my problem. The
 
I just solved my problem. The binaries were installed into /home/toni/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxAMD64Gcc4DPOpt since my system is 64 bit. I created a directory called home/toni/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt and put all the files that were in the AMD64 direcoty into this directory. I left the files in both directories and now icoFOAM is okay. Go figure.

hjasak March 14, 2007 19:01

Bad way. Remove the link, add
 
Bad way. Remove the link, add

setenv WM_64 true

(or equivalent for your shell) and all should work. I keep mine in ~/.OpenFOAM-1.3/cshrc

Hrv

tonitoney March 14, 2007 19:22

Hrv, I added WM_64=on to my
 
Hrv,

I added WM_64=on to my /home/toni/.bashrc file, and deleted the link. I reran the foaminstallationtest and now gg and java are no longer pointing to the correct files. Before the change, they were okay. I think OpenFOAM's installation for 64 bit platforms is not very accurate. I put everything back to the way I had it and now things work, but you said it was a bad way to do this. Any advice?

hjasak March 14, 2007 21:56

OK, let's take it slowly. -
 
OK, let's take it slowly.

- first, add

export WM_64=1

before sourcing the ~/.OpenFOAM-1.3/bashrc

- second, source the environment and check the env variables: FOAM_APPBIN, FOAM_LIBBIN, WM_OPTIONS

For 32-bit, mine say:

FOAM_APPBIN=/home/hjasak/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt
FOAM_LIBBIN=/home/hjasak/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt
WM_OPTIONS=linuxGcc4DPOpt

For 64-bit, you will have: linuxAMD64 in place of linux, e.g.:

WM_OPTIONS=linuxAMD64Gcc4DPOpt

- third, check the contents of the application executable and library directory:

ls $FOAM_APPBIN and ls $FOAM_LIBBBIN should be full of stuff.

- fourth, check your auxiliary tools by finding the following directory:

foam
cd ../$WM_ARCH
ls


This should have a whole bunch of stuff, e.g. paraview, your gcc compiler, gdb, etc.

- fifth, run

which gcc

and make sure you are picking up the one in the $WM_ARCH directory we've checked above.

- sixth, run foamInstallationTest and look carefully at the output. This will check a lot of stuff for you automatically and give you an indication of whether things look OK.

- seventh, do which icoFoam and ldd 'which icoFoam to see if it sees the right executable and if the right libraries are picked up.

- eighth, check the build system:

which make (should be any, but must exist)
which wmake

If this is all fine, you can try compiling the executable:

sol (this is an alias to take you to the source code of CFD solvers)
cd incompressible/icoFoam
wclean
wmake

This should clean the build of icoFoam and rebuild it.

BTW, if you keep everything as it is, you will get to the last stage and then everything will fail when you try to recompile.

I am pretty curious on how well I wrote this - a guided commentary would be great.

Pls let me know,

Hrv

tonitoney March 15, 2007 14:06

Hrv, I decided to remove al
 
Hrv,

I decided to remove all OpenFOAM files, directories, etc from my system and start over. Here are the steps I took.

In the OpenFOAM directory (/home/toni/OpenFOAM), I installed OpenFOAM-1.3.General.gtgz and OpenFOAM-1.3.linuxAMD64GccDPOpt.gtgz using the tar -zxvf command. Then I created a subdirectory called /home/toni/OpenFOAM/linuxAMD64. The instructions said to create a subdirectory with your operating system name and to extract the binaries there. This is where I installed gcc-4.1.0.linuxAMD64.tar first, secondly paraview-2.4.2.linuxAMD64.tar, and last j2sdk1.4.2_05.linuxAMD64.tar.

I ran the foamsystemcheck and it was fine. I then added the line . ~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/.bashrc to my /home/toni/.bashrc file (I put it at the end). I also added WM_64=1 to my home .bashrc file.

Then I sourced my .bashrc file.

Next I ran foamInstallationTest and here's the output. It seems icoFOAM is still a problem.

I am obviously doing something wrong. I appreciate all your help. I tried to follow your steps you suggested and was partially successful. I just think my system was really confused with all the work-arounds I'd done.

Output from foamInstallationTest.

Executing /home/toni/OpenFOAM/OpenFOAM-1.3/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: passion
OS: Linux version 2.4.21-osmp
User: toni
User_config: /home/toni/.bashrc
Foam_config: /home/toni/.OpenFOAM-1.3/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/toni/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/toni/OpenFOAM/toni-1.3 yes no
$FOAM_JOB_DIR /home/toni/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 /home/toni/OpenFOAM/OpenFOAM-1.3 yes yes yes

$FOAM_USER_APPBIN ...applications/bin/linuxAMD64Gcc4DPOpt yes yes no
$FOAM_APPBIN ...applications/bin/linuxAMD64Gcc4DPOpt yes yes yes
$WM_DIR /home/toni/OpenFOAM/OpenFOAM-1.3/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH ...ni/OpenFOAM/linuxAMD64/j2sdk1.4.2_05 yes yes no
$MICO_ARCH_PATH ...2.3.11/platforms/linuxAMD64Gcc4DPOpt no yes
$LAM_ARCH_PATH ...-7.1.1/platforms/linuxAMD64Gcc4DPOpt yes yes 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 ...OpenFOAM-1.3/lib/linuxAMD64Gcc4DPOpt yes yes yes
$FOAM_USER_LIBBIN ...OAM/toni-1.3/lib/linuxAMD64Gcc4DPOpt yes yes no
$LAM_ARCH_PATH ...-7.1.1/platforms/linuxAMD64Gcc4DPOpt yes yes yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc version /home/toni/OpenFOAM/linuxAMD64/gcc-4.1.0/bin/gcc
java 1.4.2_05 /home/toni/OpenFOAM/linuxAMD64/j2sdk1.4.2_05/bin/java
gzip 1.3 /usr/bin/gzip
tar 1.3 /bin/tar
icoFoam *** not installed ***
CRITICAL ERROR

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


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


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_passion 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 1 critical error(s).

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

eugene March 15, 2007 14:13

Add export WM_64=1 to you
 
Add
export WM_64=1

to your .bashrc file and make sure it is before

. ~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/.bashrc

tonitoney March 15, 2007 14:58

Eugene, Thanks for your respo
 
Eugene,
Thanks for your response but I had already added export WM_64=1 to my personal .bashrc file (see my message above). icoFOAM is still not working.
Thanks.

tonitoney March 15, 2007 15:15

I'm still working on my proble
 
I'm still working on my problem with icoFoam not installed. .

There are no files in ~/OpenFOAM/OpenFOAM-
1.3/applications/bin/linuxAMD64Gcc4DPOpt directory. I know this is bad.

If I put the linuxAMD64Gcc4DPOpt.gtgz file in the /home/toni/OpenFOAM directory and extracted it there, why aren't the binaries where they should be? Did I extract the linuxAMD64Gcc4DPOpt.gtgz file in the wrong directory? Instructions said to do it in /home/toni/OpenFOAM which I did.

Someone please advise. I'm struggling here.

eugene March 15, 2007 15:16

ok, what does echo $FOAM_A
 
ok, what does

echo $FOAM_APPBIN

and

ls $FOAM_APPBIN

say?

hjasak March 15, 2007 15:19

How many files did you unpack
 
How many files did you unpack to install OpenFOAM and which? You need 2 for actual OpenFOAM:

OpenFOAM-1.3.General.gtgz

OpenFOAM-1.3.linuxAMD64Gcc4DPOpt.gtgz

The second one will have the icoFoam executable. Have you got it?

Hrv

tonitoney March 15, 2007 15:20

echo $FOAM_APPBIN says /hom
 
echo $FOAM_APPBIN says

/home/toni/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxAMD64Gcc4DPOpt

ls $FOAM_APPBIN

nothing comes back because the directory is empty.


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