← Back to team overview

dolfin team mailing list archive

Re: installation of DOLFIN 0.5.7 on Debian

 



On Fri, 1 Jul 2005, Anders Logg wrote:

On Fri, Jul 01, 2005 at 12:07:16AM -0400, Faheem Mitha wrote:

You need to download PETSc version 2.2.1 from the PETSc web site:

   http://www-unix.mcs.anl.gov/petsc/petsc-2/

The latest version is really 2.3.0, but we have have not yet moved to
that version (we should). It won't work with the PETSc package (2.2.0)
in Debian, so I suggest you uninstall that package if you have it
installed.

Download the PETSc tarball and unpack it somewhere (I suggest you do
it in /usr/local/lib/). Then do the following:

   export PETSC_DIR=`pwd`
   ./config/configure.py
   make BOPT=g_c++
   make BOPT=O_c++

[snip]

When you have PETSc installed, just do

   ./configure
   make

in the DOLFIN directory to compile DOLFIN. (And then an optional make
install to install it on your system.) DOLFIN assumes that PETSc is in
/usr/local/lib/petsc/ so either make a symlink to where you compiled
PETSc or give the full path name with --with-petsc-dir=<path>. DOLFIN
also assumes that you want PETSc BOPT=g_c++, so if you want to compile
with PETSc BOPT=O_c++, use the flag --with-petsc-bopt=O_c++.

I've successfully built DOLFIN using the steps you describe above.

I'm now also packaged an *extremely* primitive Debian package for PETSc 2.2.1. This uses the steps you describe above, with the difference that I use PETSc's 'make install' target.

I've not used Powell's packaging. I tried, but had difficulty understanding it, so opted for a from-scratch approach.

To build dolfin against this build of petsc, I ran

./configure --with-petsc-dir=/usr/lib/petsc-2.2.1

I got the error messages

make: *** No rule to make target `getincludedirs'.  Stop.
make: *** No rule to make target `getlinklibs'.  Stop.

However, the configure script does not actually stop. :-)

But, later on it cannot find the include dirs etc. In successful builds these messages did not appear. On further investigation, I see it is trying to source files inside the directory 'bmake', possibly 'variable'.

Please take a look and let me know what I am doing wrong. At a superfical comparison, the result looks similar to an in-place build like you suggested. I do think that DOLFIN should be able to build against the unmodified result of a 'make install'.

You can get my version of petsc 2.2.1 from

deb http://www.cbcb.duke.edu/~faheem/debian/ ./
deb-src http://www.cbcb.duke.edu/~faheem/debian/ ./

Just do

apt-get source petsc

or

apt-get install libpetsc

As I said, this is extremely primitive, so any comments for improvement would be appreciated.

Note that one thing that should be improved, is that according to apt, the space used by this package is 130 Mb, while Powell's package for 2.2.0 was around 11 Mb. So there is room for trimming down and breaking into smaller packages.

                                                                   Faheem.



Follow ups

References