Installation/swak4Foam/Building dependencies

From OpenFOAMWiki
< Installation‎ | swak4Foam
Revision as of 18:26, 22 March 2014 by Wyldckat (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

1 Introduction

This page is dedicated to explaining how to build certain dependencies from source code, which swak4Foam needs.


2 Bison

There are currently 2 ways to build Bison from source code:

  1. Manually, when using #swak4Foam 0.3.0 and older.
  2. Nearly automatically, using the script provided in swak4Foam. TODO: This is present in the development version, but has not yet been released in a stable version.


2.1 swak4Foam 0.3.0 and older

Assuming you already have the necessary utilities for building C and C++ source code, then this should do the trick:

  1. If not already there, go into swak4Foam's folder:
    cd swak4Foam
  2. Download, unpack, compile and install Bison, by running:
    wget http://ftpmirror.gnu.org/bison/bison-2.7.tar.gz
    tar -xf bison-2.7.tar.gz
    cd bison-2.7
    ./configure --prefix $PWD/../bison
    make
    make install
    cd ..
  3. Now, before running swak4Foam's script Allwmake, run this command:
    export PATH=$PWD/bison/bin:$PATH