Difference between revisions of "Installation/Linux/foam-extend-4.1/CentOS"

From OpenFOAMWiki
(Created page with "= Introduction = This page is dedicated to preparing an [http://www.centos.org CentOS] system for installing {{-Extend}} {{version4.1-ext}}. __FORCETOC__ __TOC__ = CentOS ve...")
 
Line 8: Line 8:
  
 
== CentOS 7 ==
 
== CentOS 7 ==
 +
 +
DISCLAIMER: I do not have a virgin CentOS installation to test this on. The following should work on a new installation, but if you find that there is a package missing, please let me know.
  
 
CentOS requires a few packages to be installed in order to compile foam-extend successfully:
 
CentOS requires a few packages to be installed in order to compile foam-extend successfully:

Revision as of 09:56, 19 December 2019

1 Introduction

This page is dedicated to preparing an CentOS system for installing the foam-extend project OF Version 41ext.png.


2 CentOS versions

2.1 CentOS 7

DISCLAIMER: I do not have a virgin CentOS installation to test this on. The following should work on a new installation, but if you find that there is a package missing, please let me know.

CentOS requires a few packages to be installed in order to compile foam-extend successfully:

Install development environment:

sudo yum -y groupinstall Development\ Tools
sudo yum -y install wmake
sudo yum -y install kernel-devel

CentOS comes with the gcc toolchain 4.8.5, which is not compatible with foam-extend-4.1 (but is the correct one for foam-extend 4.0). Foam-extend-4.1 requires the gcc toolchain 7, which is available from centos-release-scl (at the time of writing gcc7 is not available as a package that will link into the CentOS module system):

Install gcc7 toolchain:

sudo yum -y install centos-release-scl
sudo yum -y install devtoolset-7

Set gcc7 toolchain environment:

source /opt/rh/devtoolset-7/enable

You may find it a good idea to include the last command in your .bashrc if you want to set the gcc7 toolchain as default, but make sure that you understand what that means, it can be safer to only invoke it when needed for foam-extend, since the rest of the system will still need gcc 4.8.5. So only do that if all of your development is on foam-extend.

Then follow the instructions on the previous page, subsection Get the source code.