Since we use standard GNU tools, the installation of the GetFEM++ library is somewhat standard.
There are two ways to get GetFEM++, either as a compressed package (stable release) or via anonymous svn access (unstable releases).
The latest stable release of GetFEM++ is getfem-4.0.0.tar.gz.
download package:
$ wget http://download.gna.org/getfem/stable/getfem-4.0.0.tar.gzunpack:
$ tar xzf getfem-4.0.0.tar.gzand go to the root directory of GetFEM++:
$ cd getfem-4.0.0/
The latest unstable releases is:
checkout over SVN protocol (TCP 3690):
$ svn co svn://svn.gna.org/svn/getfem/trunk/getfem++ getfemor checkout over HTTP protocol (TCP 80):
$ svn co http://svn.gna.org/svn/getfem/trunk/getfem++ getfemgo to the root directory of GetFEM++:
$ cd getfem/and run autogen.sh script:
$ bash autogen.sh
Configure with:
$ ./configure
then start the compilation with:
$ make
and finally install with:
$ make install
If you want to use a different compiler than the one chosen automatically by the ./configure script, just specify its name on the command line:
$ ./configure CXX=mycompiler
If you want to use a specific BLAS library, you may have to supply the necessary link flags and libs to the configure script with:
$ ./configure BLAS_LIBS="-L/path/to/lib -lfoo -lbar ....etc"
for example:
$ ./configure BLAS_LIBS="-L/usr/lib/sse2/atlas -lblas"
If you want to set the prefix directory where to install the library you can use the --prefix option (the default prefix directory is /usr/local):
$ ./configure --prefix=my_dest_dir
If you want build Python getfem-interface, use --enable-python=yes option.
Warning
Note that there are other options to the configure script. A ./configure --help will list them. Most important ones are --enable-matlab, --enable-python and --enable-scilab to build the getfem-interface.
More specific instructions can be found in the README* files of the distribution.