← Back to team overview

dolfin team mailing list archive

Re: Problems with compiling DOLFIN on Redhat

 

Hi Garth,

I did:

[alireza@master alireza]$ env |grep PETSC_DIR
PETSC_DIR=/data/alireza/petsc-2.3.1-p11

It might be because I haven't installed MPI on my account and didn't disable it during configuration of MPI. may be it uses MPI of another account?

Alireza

------------------------
Date: Fri, 07 Apr 2006 21:25:12 +0200
From: "Garth N. Wells" <g.n.wells@xxxxxxxxxx>
Subject: Re: [DOLFIN-dev] Problems with compiling DOLFIN on Redhat
To: Discussion of DOLFIN development <dolfin-dev@xxxxxxxxxx>
Message-ID: <1144437912.8606.2.camel@localhost.localdomain>
Content-Type: text/plain

What do you see if you do

 >env | grep PETSC_DIR ?

Garth


On Fri, 2006-04-07 at 10:22 -0700, Alireza Forghani wrote:

> 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



Follow ups