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

From OpenFOAMWiki
m
m
Line 7: Line 7:
 
The information presented here has been tested and validated by the author while compiling [http://www.opencfd.co.uk/openfoam/version1.3.html 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...
 
The information presented here has been tested and validated by the author while compiling [http://www.opencfd.co.uk/openfoam/version1.3.html 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 dont hesitate to complement the information presented here.
+
This is work in progress; please don't hesitate to complement the information presented here.
  
 
== Preambule ==
 
== Preambule ==

Revision as of 04:45, 10 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 Preambule

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

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)