Installing DOLFIN
From The FEniCS project
This guide is tested on Ubuntu 8.04 and assumes you have root (sudo) access. The DOLFIN components will be installed locally to allow multiple simultanuous installations.
Contents |
Installing required packages under Ubuntu/Debian
Installing the required and some optional packages:
sudo apt-get install g++ scons mercurial libxml2-dev libgts-dev pkg-config \ python-dev python-numpy python-vtk swig libsuitesparse-dev libboost-dev wget
Download and install UFC:
wget http://www.fenics.org/pub/software/ufc/v1.0/ufc-1.1.tar.gz tar xzf ufc-1.1.tar.gz cd ufc-1.1/ sudo python setup.py install
Download and install Viper (optional):
wget http://www.fenics.org/pub/software/viper/v0.3/viper-0.3.0.tgz tar xzf viper-0.3.0.tgz cd viper-0.3.0/ sudo python setup.py install
It is possible to install without some of these packages by disabling features. For example to compile without SWIG use option: enablePydolfin=no
Downloading
The latest release can be downloaded from here. The development version can be cloned by
hg clone http://www.fenics.org/hg/dolfin
Compiling
To compile DOLFIN, simply run
scons
Optional components can be enabled or disabled by giving arguments to scons (use -h or -H when running scons to see the available options).
Installing
scons install prefix=`pwd`/local source dolfin.conf
Compiling demos
To compile a specific demo program, navigate to that demo's subfolder and run scons. To compile all the demos, navigate to the top-level directory and simply run
scons enableDemos=yes
Some of the demo programs requires other FEniCS packages to be installed:
Download and install FFC:
wget http://www.fenics.org/pub/software/ffc/v0.4/ffc-0.4.5.tar.gz tar xzf ffc-0.4.5.tar.gz cd ffc-0.4.5/ sudo python setup.py install
Download and install Instant:
wget http://www.fenics.org/pub/software/instant/v0.9/instant-0.9.4.tar.gz tar xzf instant-0.9.4.tar.gz cd instant/ sudo python setup.py install
Download and install FIAT:
wget http://www.fenics.org/pub/software/fiat/FIAT-0.3.4.tar.gz tar xzf FIAT-0.3.4.tar.gz cd FIAT-0.3.4/ sudo python setup.py install

