|
[Sponsors] |
How to compile OpenFOAM from scratch bashrc and cshrc |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 7, 2006, 10:58 |
Hello,
I would like to comp
|
#1 |
New Member
Daniel Tourde - Caelae.se
Join Date: Mar 2009
Posts: 3
Rep Power: 17 |
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 |
|
December 11, 2006, 05:57 |
Hi Daniel!
I think the easi
|
#2 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
December 15, 2006, 10:30 |
Hello Daniel,
Regarding gcc
|
#3 |
New Member
Tomohiro Bessho
Join Date: Mar 2009
Location: Kyoto, Kyoto, Japan
Posts: 7
Rep Power: 17 |
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. |
|
|
|
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 |