Difference between revisions of "Installation/Outdated/Howto compile OpenFOAM"

From OpenFOAMWiki
m
m (Preamble)
Line 28: Line 28:
 
</bash>
 
</bash>
  
''Note:'' As a rule of thumb, do not install OpenFOAM as the user ''root'' on your workstation. Instead, use your own username, or simply create a new user ''openfoam''. The super-user ''root'' is usually reserved for system administration tasks.  
+
 
 
+
For the rest of this document, only the x86 installation procedure will be presented in detail. The specific information for the installation on x86_64 platforms will be presented only when significantly different from the x86 installation procedure.
 +
 
 +
 
 +
''Note:'' As a rule of thumb, do not install OpenFOAM as the user ''root'' on your workstation. Instead, use your own username, or simply create a new user ''openfoam''. The super-user ''root'' is usually reserved for system administration tasks.
 +
 
 
== Compiling and installing Gcc ==
 
== Compiling and installing Gcc ==
  

Revision as of 03:05, 11 April 2006

This document describes howto compile OpenFOAM on Unix from the source code provided by the nice folks at OpenCFD.

This document also describes howto download and compile some of the tools needed for compiling OpenFOAM.

The process described in this document is based on the OpenFOAM README file, Section "4. Building from Sources (Optional)", but with more details.

The information presented here has been tested and validated by the author while compiling OpenFOAM 1.3, under SuSE 9.1 x86_64, RedHat/Centos 4 and Debian/Knoppix 5.0. Depending on your Operating System and/or your OS version, your milleage may vary...

This is work in progress; please don't hesitate to complement the information presented here.

1 Preamble

This document describes the compilation and installation of OpenFOAM in the default installation directory $HOME/OpenFOAM and $HOME/OpenFOAM/linux, as suggested in http://www.openfoam.org/download.html.


If not already available, you first need to create these directories:


For x86:

 
mkdir -p $HOME/OpenFOAM/linux


For x86_64:

 
mkdir -p $HOME/OpenFOAM/linuxAMD64


For the rest of this document, only the x86 installation procedure will be presented in detail. The specific information for the installation on x86_64 platforms will be presented only when significantly different from the x86 installation procedure.


Note: As a rule of thumb, do not install OpenFOAM as the user root on your workstation. Instead, use your own username, or simply create a new user openfoam. The super-user root is usually reserved for system administration tasks.

2 Compiling and installing Gcc

3 Installing the Java JSDK

4 Installing the OpenFOAM source code

5 Compiling and installing cmake

6 Compiling and installing paraView

7 Partial installation of GNU binutils (optional)

8 Miscellaneous adjustments (optional)

9 Compiling OpenFOAM


Valid versions: OF version 13.png

--MB 05:16, 10 Apr 2006 (CEST)