This worked fine for me with one modification. The line below:

export WM_COMPILER_DIR=/usr$WM_COMPILER_ARCH

was changed to:

export WM_COMPILER_DIR=/usr

and then running foamInstallationTest worked just fine. I'm running on an AMD 64-bit system.


Quote Originally Posted by in_flu_ence View Post
For those who would like to use the system installed gcc and java, I have done the following by editing the ~/OpenFOAM/OpenFOAM-1.3/.bashrc (where ~ refers to your home path, e.g. /home/username)

Edit the following lines (the bold part)
Code:
if [ "$WM_COMPILER" = "Gcc4" ]; then
    export WM_COMPILER_DIR=/usr$WM_COMPILER_ARCH
    WM_COMPILER_BIN="$WM_COMPILER_DIR/bin:$WM_COMPILER_DIR/../gdb-6.4/bin"
    WM_COMPILER_LIB=$WM_COMPILER_DIR/lib${WM_COMPILER_LIB_ARCH}:$WM_COMPILER_DIR/lib:
&

Code:
# Java
# ~~~~

# Linux workstation
# ~~~~~~~~~~~~~~~~~
if [ "$machineTest" = "Linux" ]; then

    export JAVA_HOME=/usr

    processor=`uname -m`

    if [ "$processor" = "ia64" ]; then
        export JAVA_HOME=/usr/java/j2sdk1.4.2
    fi
With this, I can delete the gcc and java folders that were unzippd to the /linux folder or for those going to install, you don't have to download that two package.

Hope it helps.

If someone else has tested this, I guess we can edit the wiki to reflect the changes.