This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/doc/buildInstructions/Fedora/Fedora19

56 lines
1.3 KiB
Text
Raw Normal View History

Below are build instructions for Fedora 19:
2014-04-03 17:15:36 +00:00
These instructions assume that you install in the default location, which is
2014-04-03 17:15:36 +00:00
~/foam/ . Create this folder with:
cd ~
mkdir foam
* Obtain and unpack source code (if you read this, you probably already have):
The recommended way is to get the source code through git source code
2014-04-03 17:15:36 +00:00
management system. This way, you can get updates and bugfixes easily by running
"git pull". To install into the default location run:
2014-04-03 17:15:36 +00:00
cd ~/foam
git clone git://git.code.sf.net/p/openfoam-extend/foam-extend-3.0
2014-04-03 17:15:36 +00:00
Alternatively, you can download a snapshot (.tgz) of the source code from:
http://sourceforge.net/projects/openfoam-extend/files/foam-extend-3.0/
* Install required packages:
sudo yum groupinstall "Development Tools"
sudo yum install gcc-c++ binutils-devel bison flex m4 zlib-devel \
qt-devel qtwebkit-devel mercurial graphviz
2014-04-03 17:15:36 +00:00
* Set environment variables:
cd ~/foam/foam-extend-3.0
. etc/bashrc
Optionally, set environment variable for Qt to compile ParaView:
2014-04-03 17:15:36 +00:00
export QT_BIN_DIR=/usr/lib64/qt4/bin
Optionally, set environment variable for compiling Cuda solvers, for example
(replace "sm_30" with value according to your GPU architecture):
2014-04-03 17:15:36 +00:00
export CUDA_ARCH=sm_30
* Compile:
./Allwmake.firstInstall
* Create user directory:
mkdir -p $FOAM_RUN
And you are ready to start.