CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   How to compile OpenFOAM from scratch bashrc and cshrc (

danieltourde December 7, 2006 10:58

Hello, I would like to comp

I would like to compile OpenFOAM on my Gentoo x86 linux box from scratch.
The machine has gcc-4.1.1, paraview and java already installed. I am NOT willing to install them again within OpenFOAM (as the wiki page recommends).

I am fighting with the bashrc and cshrc files in OpenFOAM-1.3 and OpenFOAM-1.3/.OpenFOAM-1.3 directories, where PATHS and other environment variables are defined.

Does anyone know how to modify these files in a clean, simple and efficient way in order to use the gcc, binutils, java etc. already installed on a Linux system?


gschaider December 11, 2006 05:57

Hi Daniel! I think the easi
Hi Daniel!

I think the easiest way to use the system-installed gcc etc is to just not install the OpenFOAM-supplied gcc (or move it to a location not in the paths). Then there are some unused entries in the PATH-variables, but that doesn't hurt anyone.


tomohiro December 15, 2006 10:30

Hello Daniel, Regarding gcc
Hello Daniel,

Regarding gcc, you can use system gcc by defining as follows in ${WM_PROJECT_INST_DIR}/OpenFOAM-1.3/.bashrc


it will be valid if your system gcc is in /usr/bin

As for binutils, it will depend on your distribution. All you need to take cake seems to be "demangle.h"

Anyway, please study OpenFOAMWiki well.

All times are GMT -4. The time now is 03:21.