![]() The super-user root should always be reserved for doing system administration tasks.Ģ Compiling and installing GNU Gcc 2.1 The motivation for compiling GNU gccĬompiling the GNU gcc/g++ compiler can be a daunting task for the non-initiated. Instead, use your own username, or simply create a new user openfoam. It might save you some headaches later on.Īs a rule of thumb, do not install OpenFOAM as the user root on your workstation. So, take the time to RTFM about RCS (eg: man rcs). The nice thing about RCS is its simplicity, the fact that it stores the file revision archive locally, and most importantly, it's a system that will help you memorize every revisions of any given ASCII file, so you will always be able to return any modified file back to a known and valid version. RCS comes standard with probably almost every modern flavors of Unix. It's a revision control system that is the ancestor of the well known CVS and Subversion revision systems. In the process of recompiling and installing OpenFOAM 1.3, you will have to modify some of the files provided by OpenCFD.īefore doing so, I highly recommend archiving the original version of the file under RCS first. The specific information for the installation on x86_64 platforms will be presented only when significantly different from the x86 installation procedure. If not already available, you first need to create these directories:įor the rest of this document, only the x86 installation procedure will be presented in detail. This document describes the compilation and installation of OpenFOAM 1.3 in the default installation directory $HOME/OpenFOAM and $HOME/OpenFOAM/linux, as suggested in in the download page. 12.3.5 /usr/bin/ld: cannot find -lfiniteVolume.12.3.4 error while loading shared libraries: /usr/lib64/libz.so: invalid ELF header.12.3.3 Cannot find interpolatePointToCell.H while compiling foamToVTK.C.12.3.1 Readline libraries on some x86_64.12 Building on x86_64 Fedora Core (AMD64) and Gentoo (EMT64).11 Building OpenFOAM on OpenSolaris x86_32 2/07.8.1 Configuring OpenFOAM for using binutils demangle.h.8 Partial installation of GNU binutils (optional).7 Modifications for the compilation of PVFoamReader.6.4 Modification to the file CMakeLists.txt.6.2 Downloading and installing ParaView source code.6.1 Selecting the right version of ParaView.4.4 Initializing the OpenFOAM environment variables.4.3.2 Modifications for a debug version of OpenFOAM.4.3.1 Modifications for a Single-Precision version of OpenFOAM.4.3 Modifying $HOME/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc or $HOME/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/cshrc (optional).4.2 Modifying $HOME/OpenFOAM/OpenFOAM-1.3/.bashrc or $HOME/OpenFOAM/OpenFOAM-1.3/.cshrc (optional).4.1 Downloading and extracting the source code.2.4 Configuration, compilation and installation of GNU gcc.2.3 Configuration, compilation and full installation of GNU binutils (optional). ![]() ![]() 2.2 Selecting the right package to download.2.1 The motivation for compiling GNU gcc.1.2 Not so basic (but very useful) stuff.There is always room for improvement, of course, but before you do modify this text, please hesitate for 5 minutes, just to be sure that the new information you will add is really useful for the community, necessary and proven to be true. This document is now in a pretty stable state because many people went over it since the initial version was published. The current text is based on the packages version recommended for OpenFOAM 1.3. Depending on your Operating System and/or your OS version, your milleage may vary.įurthermore, the version numbers for the different packages involved in the recompilation of OpenFOAM are different for OpenFOAM version 1.3 and 1.4 please use the packages source code version associated with the binary package proposed by OpenCFD when upgrading and compiling a newer version of OpenFOAM. 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, and more recently with OpenFOAM 1.4 on the same RedHat system. Building from Sources (Optional)", but with more details. The process described in this document is based on the OpenFOAM README file, Section "4. This document also describes how to download and compile some of the tools or packages needed for compiling OpenFOAM. This document describes how to compile OpenFOAM on Unix from the source code provided by the nice folks at OpenCFD.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |