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.
Bookmarks