CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   i586 architectures (https://www.cfd-online.com/Forums/openfoam-installation/57746-i586-architectures.html)

ralf May 2, 2005 19:19

Hello all OpenFOAM users, I
 
Hello all OpenFOAM users,

I know a little bit about linux but I am new to OpenFOAM. I would like to work with it, but have problems with the installation. After listing the .OpenFOAM-1.1/bashrc as described in the README file in my $HOME/.bashrc with
. $HOME/OpenFOAM/OpenFOAM-1.1/.OpenFOAM-1.1/bashrc
I get following error messages when I try to re-source .bashrc:

$>. ./.bashrc
Unknown processor type i586 for Linux
Executing: /home/ralf/OpenFOAM/OpenFOAM-1.1/.bashrc
Executing: /home/ralf/OpenFOAM/OpenFOAM-1.1/.OpenFOAM-1.1/apps/dxFoam/bashrc
Executing: /home/ralf/OpenFOAM/OpenFOAM-1.1/.OpenFOAM-1.1/apps/ensightFoam/bashrc
bash: [: =: unary operator expected
bash: [: too many arguments
Executing: /home/ralf/OpenFOAM/OpenFOAM-1.1/.OpenFOAM-1.1/apps/paraview/bashrc

I think this is the reason why icoFoam is not found. I searched a bit but couldn't find a solution, I don't know how to interpret those messages. Below are some information about my system, I use Debian Sarge. I would appreciate any help you could give me.

Thanks in advance,
Ralf

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

uname -a
Linux debserv 2.4.27-1-386 #1 Fri Sep 3 06:24:46 UTC 2004 i586 GNU/Linux

/home/ralf/OpenFOAM/
insgesamt 132M
drwxr-xr-x 5 ralf ralf 1,0K 2005-04-30 01:15 linux/
drwxr-xr-x 10 ralf ralf 1,0K 2005-04-30 01:11 OpenFOAM-1.1/
-rwxr--r-- 1 ralf ralf 68M 2005-04-25 21:58 OpenFOAM-1.1.General.gtgz
-rwxr--r-- 1 ralf ralf 63M 2005-04-25 21:59 OpenFOAM-1.1.linuxOpt.gtgz
drwxr-xr-x 4 ralf ralf 1,0K 2005-04-30 01:29 ralf-1.1/

linux/
insgesamt 83M
drwxr-x--- 9 ralf ralf 1,0K 2004-11-19 12:12 gcc-3.4.3/
-rwxr--r-- 1 ralf ralf 21M 2005-04-25 21:57 gcc-3.4.3.linux.gz
drwxr-xr-x 9 ralf ralf 1,0K 2004-07-06 13:52 j2sdk1.4.2_05/
-rwxr--r-- 1 ralf ralf 47M 2005-04-25 21:58 j2sdk1.4.2_05.linux.gz
drwxr-x--- 5 ralf ralf 1,0K 2005-02-23 23:42 paraview-1.8.5/
-rwxr--r-- 1 ralf ralf 15M 2005-04-25 21:59 paraview-1.8.5.linux.gz

OpenFOAM-1.1/
insgesamt 59K
-rwxr-x--- 1 ralf ralf 156 2005-01-05 16:00 Allwmake
drwxr-xr-x 6 ralf ralf 1,0K 2005-04-30 01:11 applications/
-rw-r----- 1 ralf ralf 6,4K 2005-03-08 13:50 .bashrc
drwxr-xr-x 3 ralf ralf 1,0K 2005-04-30 01:01 bin/
-rw-r----- 1 ralf ralf 18K 2004-12-02 12:43 COPYING
-rw-r----- 1 ralf ralf 6,5K 2005-03-08 13:50 .cshrc
drwxr-xr-x 5 ralf ralf 1,0K 2005-04-30 01:04 doc/
drwxr-xr-x 4 ralf ralf 1,0K 2005-04-30 01:29 lib/
drwxr-xr-x 4 ralf ralf 1,0K 2005-04-30 01:08 .OpenFOAM-1.1/
-rw-r----- 1 ralf ralf 9,0K 2005-03-10 18:01 README
-rw-r----- 1 ralf ralf 6,5K 2005-03-10 18:06 ReleaseNotes-1.1
drwxr-xr-x 29 ralf ralf 1,0K 2005-04-30 01:06 src/
-rw-r----- 1 ralf ralf 9 2005-03-10 18:06 .timeStamp
drwxr-xr-x 39 ralf ralf 1,0K 2005-04-30 01:07 tutorials/
drwxr-xr-x 8 ralf ralf 1,0K 2005-04-30 01:06 wmake/

Executing ./foamInstallationTest:

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: debserv
OS: Linux version 2.4.27-1-386
User: ralf
User_config: /home/ralf/.bashrc
Foam_config: /home/ralf/.OpenFOAM-1.1/bashrc sourced correctly.
-------------------------------------------------------------------------------


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

$FOAM_USER_APPBIN ...enFOAM/ralf-1.1/applications/bin/Opt yes yes no
$FOAM_APPBIN ...AM/OpenFOAM-1.1/applications/bin/Opt yes yes yes
$WM_DIR /home/ralf/OpenFOAM/OpenFOAM-1.1/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH /home/ralf/OpenFOAM//j2sdk1.4.2_05 no no
$MICO_ARCH_PATH ...AM-1.1/src/mico-2.3.11/platforms/Opt no yes
$LAM_ARCH_PATH ...FOAM-1.1/src/lam-7.1.1/platforms/Opt 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 /home/ralf/OpenFOAM/OpenFOAM-1.1/lib/Opt yes yes yes
$FOAM_USER_LIBBIN /home/ralf/OpenFOAM/ralf-1.1/lib/Opt yes yes no
$LAM_ARCH_PATH ...FOAM-1.1/src/lam-7.1.1/platforms/Opt yes yes yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc
WARNING: Conflicting installations:
foam settings: /home/ralf/OpenFOAM//gcc-3.4.3/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java *** not installed ***

gzip 1.3.5 /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_debserv 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.

mattijs May 3, 2005 03:58

In your .OpenFOAM-1.1/bashrc a
 
In your .OpenFOAM-1.1/bashrc around line 89 or so it tests for your machine type using 'uname -m'. It is currently only setup for i686 architectures. You can add your type (i586) to this test.

That will make sure that your setup files execute correctly but probably none of the binaries will so you might have to compile everything from scratch (starting with gcc-3.4.3 and use this to build OpenFOAM)

ralf May 5, 2005 18:06

Hello Mattijs, thank you ve
 
Hello Mattijs,

thank you very much for your help! I just changed the "i686" to "i586" in the bashrc, now it says in line 88:

if [ "$processor" = "i586" ]; then

After re-sourcing the bashrc, the foamInstallationTest was completed without errors. Everything is running, no compilation necessary!

Thanks!
Ralf


All times are GMT -4. The time now is 20:02.