CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Installation

How to compile OpenFOAM from scratch bashrc and cshrc

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 7, 2006, 10:58
Default Hello, I would like to comp
New Member
Daniel Tourde -
Join Date: Mar 2009
Posts: 3
Rep Power: 10
danieltourde is on a distinguished road

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?

danieltourde is offline   Reply With Quote

Old   December 11, 2006, 05:57
Default Hi Daniel! I think the easi
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,020
Rep Power: 43
gschaider will become famous soon enoughgschaider will become famous soon enough
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.

Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   December 15, 2006, 10:30
Default Hello Daniel, Regarding gcc
New Member
Tomohiro Bessho
Join Date: Mar 2009
Location: Kyoto, Kyoto, Japan
Posts: 7
Rep Power: 10
tomohiro is on a distinguished road
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.
tomohiro is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble sourcing the bashrc for 15x sripplinger OpenFOAM Installation 5 April 7, 2009 14:06
Compile OpenFOAM on Fedora 8 asaha OpenFOAM Installation 1 August 25, 2008 11:41
Bashrc for PS3 Fedora 6 and IBM sdk 21 mgarcia OpenFOAM Installation 0 November 2, 2007 14:24
Max Scratch Space Ravi Siemens 2 May 18, 2007 01:54
What flags to set in cshrc kupiainen OpenFOAM Installation 2 June 8, 2005 07:56

All times are GMT -4. The time now is 05:37.