> Hi Anders,
>
> Configuration says:
>
> using PETSC_DIR=/data/alireza/petsc-2.3.1-p11
> disabling compilation of PyDOLFIN
> checking for configarch... yes
>
> but exactly after that when I try to compile demo the error appears:
>
>
> /data/daan/FeNics/petsc-2.3.1-p2: Permission denied
> /data/daan/FeNics/petsc-2.3.1-p2/bmake/linux-gnu-intel: Permission denied
> /data/daan/FeNics/petsc-2.3.1-p2/include: Permission denied
> /data/daan/FeNics/petsc-2.3.1-p2/include/mpiuni: Permission denied
> /data/daan/FeNics/petsc-2.3.1-p2: Permission denied
> /data/daan/FeNics/petsc-2.3.1-p2/bmake/linux-gnu-intel: Permission denied
> /data/daan/FeNics/petsc-2.3.1-p2/include: Permission denied
> /data/daan/FeNics/petsc-2.3.1-p2/include/mpiuni: Permission denied
> make[3]: *** [main.o] Error 1
>
> As you see it tries to use another library.
>
> I also used:
>
> export PATH="data/alireza/dolfin0.6.1/local/bin:$PATH"
>
> and these are what exactly PETSc says after configuration:
>
> =================================================================================
> Configuring PETSc to compile on your system
> =================================================================================
> Compilers:
> C Compiler: mpicc -fPIC -Wall -Wshadow -Wwrite-strings -fomit-frame-pointer -g3
> Fortran Compiler: mpif77 -fPIC -Wall -g
> Linkers:
> Shared linker: mpicc -shared -fPIC -Wall -Wshadow -Wwrite-strings -fomit-frame-pointer -g3
> Dynamic linker: mpicc -shared -fPIC -Wall -Wshadow -Wwrite-strings -fomit-frame-pointer -g3
> PETSc:
> **
> ** Before running "make" your PETSC_ARCH must be specified with:
> ** ** setenv PETSC_ARCH linux-gnu-c-real-debug (csh/tcsh)
> ** ** PETSC_ARCH=linux-gnu-c-real-debug; export PETSC_ARCH (sh/bash)
> **
> PETSC_DIR: /data/alireza/petsc-2.3.1-p11
> **
> ** Now build and test the libraries with "make all test"
> **
> Scalar type:real
> Clanguage: C
> MPI:
> PETSc shared libraries: disabled
> PETSc dynamic libraries: disabled
> X11:
> Includes: ['-I/usr/X11R6/include']
> Library: ['-L/usr/X11R6/lib -lX11']
> BLAS/LAPACK: -Wl,-rpath,/data/alireza/petsc-2.3.1-p11/externalpackages/fblaslapack/linux-gnu-c-real-debug -L/data/alireza/petsc-2.3.1-p11/externalpackages/fblaslapack/linux-gnu-c-real-debug -lflapack -Wl,-rpath,/data/alireza/petsc-2.3.1-p11/externalpackages/fblaslapack/linux-gnu-c-real-debug -L/data/alireza/petsc-2.3.1-p11/externalpackages/fblaslapack/linux-gnu-c-real-debug -lfblas
>
>
> Thank You,
> Alireza