CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

How to compile OpenFOAM from scratch bashrc and cshrc

Register Blogs Community New Posts Updated Threads Search

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

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?

Daniel
danieltourde is offline   Reply With Quote

Old   December 11, 2006, 05:57
Default Hi Daniel! I think the easi
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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.

Bernhard
__________________
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
  #3
New Member
 
Tomohiro Bessho
Join Date: Mar 2009
Location: Kyoto, Kyoto, Japan
Posts: 7
Rep Power: 17
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

WM_COMPILER_DIR=/usr

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

Reply


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 Off
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 15:06
Compile OpenFOAM on Fedora 8 asaha OpenFOAM Installation 1 August 25, 2008 12: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 02:54
What flags to set in cshrc kupiainen OpenFOAM Installation 2 June 8, 2005 08:56


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