[petsc-users] [petsc-maint #52322] Regarding PETSC using for OOFEM parallel and SLEPc library installation

Matthew Knepley petsc-maint at mcs.anl.gov
Tue Sep 7 06:54:53 CDT 2010


The first problem is that we changed the structure slightly in the latest
release. Instead of

include ${PETSC_DIR}/conf/base

you use

include ${PETSC_DIR}/conf/variables
include ${PETSC_DIR}/conf/rules

  Thanks,

     Matt

On Tue, Sep 7, 2010 at 11:37 AM, shraddha <shraddhav at cdac.in> wrote:

> Dear Sir/Madam,
>
>              I have installed petsc-3.1-p4
>
>
>
> petsc-3.1-p4]$ time ./configure 2>&1 | tee LOG-config-2
>
>
>
> Compilers:
>
>  C Compiler:         mpicc  -Wall -Wwrite-strings -Wno-strict-aliasing -g3
>
>  Fortran Compiler:   mpif90  -Wall -Wno-unused-variable -g
>
> Linkers:
>
>  Static linker:   /usr/bin/ar cr
>
> MPI:
>
>  Includes: -I/opt/mpich2/gnu/include
>
> X11:
>
>  Includes:
>
>  Library:  -lX11
>
> BLAS/LAPACK: -llapack -lblas
>
> PETSc:
>
>  PETSC_ARCH: linux-gnu-c-debug
>
>  PETSC_DIR: /home/shraddha/PETSC/petsc-31p4/petsc-3.1-p4
>
>  Clanguage: C
>
>  Memory alignment: 16
>
>  Scalar type: real
>
>  Precision: double
>
>  shared libraries: disabled
>
>  dynamic libraries: disabled
>
>
> xxx=========================================================================
> xxx
>
>   Configure stage complete. Now build PETSc libraries with:
>
>   make PETSC_DIR=/home/shraddha/PETSC/petsc-31p4/petsc-3.1-p4
> PETSC_ARCH=linux-gnu-c-debug all
>
>
> xxx=========================================================================
> xxx
>
>
>
> MAKE:
>
>
>
> make PETSC_DIR=/home/shraddha/PETSC/petsc-31p4/petsc-3.1-p4
> PETSC_ARCH=linux-gnu-c-debug all
>
>
>
> [shraddha at Dell petsc-3.1-p4]$ ls linux-gnu-c-debug/
>
> bin  conf  include  lib
>
>
>
> [shraddha at Dell petsc-3.1-p4]$ ls linux-gnu-c-debug/bin/
>
>
>
> [shraddha at Dell petsc-3.1-p4]$ ls linux-gnu-c-debug/lib/
>
> libpetsc.a
>
> [shraddha at Dell petsc-3.1-p4]$ ls linux-gnu-c-debug/include/
>
> petscaodef.mod     petscda.mod     petsckspdef.mod     petscmeshdef.mod
> petscpcdef.mod    petscsys.mod
>
> petscao.mod        petscdef.mod    petscksp.mod        petscmesh.mod
> petscpc.mod       petsctsdef.mod
>
> petscconf.h        petscfix.h      petscmachineinfo.h  petscmgdef.mod
> petscsnesdef.mod  petscts.mod
>
> petscconfiginfo.h  petscisdef.mod  petscmatdef.mod     petscmg.mod
> petscsnes.mod     petscvecdef.mod
>
> petscdadef.mod     petscis.mod     petscmat.mod        petsc.mod
> petscsysdef.mod   petscvec.mod
>
>
>
> I have set PETSC_ARCH =linux-gnu or linux-gnu-c-debug in bashrc file.
>
>
>
> Now I wanted to install OOFEM parallel module.
>
>
>
> #export OOFEM_DIR=/home/shraddha/ONAMA/mechanical/OOFEM/oofem-1.8
>
> export OOFEM_DIR=/home/shraddha/ONAMA/mechanical/OOFEM/oofem-1.9
>
>
>
>
>
> ./configure --prefix=/home/shraddha/ONAMA/mechanical/OOFEM/oofem-1.9
> --enable-poofem --with-MPIDIR=/opt/mpich2/gnu --enable-petsc
> --with-PETSCDIR=/home/shraddha/PETSC/petsc-31p4/petsc-3.1-p4
> --with-PARMETISDIR=/home/shraddha/PARMETIS/gnu/ParMetis-3.1.1
> PETSC_ARCH=linux-gnu-c-debug CXX=mpicxx
>
>
>
> make
>
>
>
> makefile:10: /home/shraddha/PETSC/petsc-31p4/petsc-3.1-p4/conf/base: No
> such
> file or directory
>
> makefile:63: generalbc.d: No such file or directory
>
> makefile:63: boundary.d: No such file or directory
>
> makefile:63: crosssection.d: No such file or directory
>
> makefile:63: dictionr.d: No such file or directory
>
> makefile:63: dof.d: No such file or directory
>
>
>
> I am not having petsc-3.1-p4/conf/base file.
>
> What should I do in this case???Please guide me.
>
>
>
> Another kind of error I am getting when I am trying to install SLEPc
> library:
>
>
>
> slepc-3.1-p2]$ ./configure --help
>
> SLEPc Configure Help
>
>
> ----------------------------------------------------------------------------
> ----
>
>  --prefix=<dir>                   : Specifiy location to install SLEPc
> (e.g., /usr/local)
>
> ARPACK:
>
>  --with-arpack                    : Indicate if you wish to test for ARPACK
> (PARPACK)
>
>  --with-arpack-dir=<dir>          : Indicate the directory for ARPACK
> libraries
>
>  --with-arpack-flags=<flags>      : Indicate comma-separated flags for
> linking ARPACK
>
> BLZPACK:
>
>  --with-blzpack                   : Indicate if you wish to test for
> BLZPACK
>
>  --with-blzpack-dir=<dir>         : Indicate the directory for BLZPACK
> libraries
>
>  --with-blzpack-flags=<flags>     : Indicate comma-separated flags for
> linking BLZPACK
>
> TRLAN:
>
>  --with-trlan                     : Indicate if you wish to test for TRLAN
>
>  --with-trlan-dir=<dir>           : Indicate the directory for TRLAN
> libraries
>
>  --with-trlan-flags=<flags>       : Indicate comma-separated flags for
> linking TRLAN
>
> PRIMME:
>
>  --with-primme                    : Indicate if you wish to test for PRIMME
>
>  --with-primme-dir=<dir>          : Indicate the directory for PRIMME
> libraries
>
>  --with-primme-flags=<flags>      : Indicate comma-separated flags for
> linking PRIMME
>
> slepc4py:
>
>  --download-slepc4py              : Download and install slepc4py in SLEPc
> directory
>
>
>
> slepc-3.1-p2]$ ./configure
> --prefix=/home/shraddha/ONAMA/mechanical/OOFEM/SLEPc/slepc-3.1-p2
>
>
>
> Checking environment...
>
> ERROR: SLEPc cannot be configured for non-source installation if PETSc is
> not configured in the same way.
>
>
>
> Please Guide me regarding this.
>
>
>
> Regards,
>
> Shraddha Desai
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>
>  Dear Sir/Madam,
>
>               I have installed *petsc-3.1-p4*
>
>
>
> *petsc-3.1-p4]$ time ./configure 2>&1 | tee LOG-config-2*
>
>
>
> *Compilers:*
>
> *  C Compiler:         mpicc  -Wall -Wwrite-strings -Wno-strict-aliasing
> -g3*
>
> *  Fortran Compiler:   mpif90  -Wall -Wno-unused-variable -g*
>
> Linkers:
>
>   Static linker:   /usr/bin/ar cr
>
> MPI:
>
>   Includes: -I/opt/mpich2/gnu/include
>
> X11:
>
>   Includes:
>
>   Library:  -lX11
>
> *BLAS/LAPACK: -llapack -lblas*
>
> *PETSc:*
>
> *  PETSC_ARCH: linux-gnu-c-debug*
>
> *  PETSC_DIR: /home/shraddha/PETSC/petsc-31p4/petsc-3.1-p4*
>
>   Clanguage: C
>
>   Memory alignment: 16
>
>   Scalar type: real
>
>   Precision: double
>
>   shared libraries: disabled
>
>   dynamic libraries: disabled
>
>
> xxx=========================================================================xxx
>
>    Configure stage complete. Now build PETSc libraries with:
>
>    make PETSC_DIR=/home/shraddha/PETSC/petsc-31p4/petsc-3.1-p4
> PETSC_ARCH=linux-gnu-c-debug all
>
>
> xxx=========================================================================xxx
>
>
>
> *MAKE:*
>
>
>
> *make PETSC_DIR=/home/shraddha/PETSC/petsc-31p4/petsc-3.1-p4
> PETSC_ARCH=linux-gnu-c-debug all*
>
>
>
> [shraddha@*Dell petsc-3.1-p4]$ ls linux-gnu-c-debug/*
>
> *bin  conf  include  lib*
>
> * *
>
> [shraddha at Dell *petsc-3.1-p4]$ ls linux-gnu-c-debug/bin/*
>
>
>
> [shraddha at Dell *petsc-3.1-p4]$ ls linux-gnu-c-debug/lib/*
>
> *libpetsc.a*
>
> [shraddha at Dell *petsc-3.1-p4]$ ls linux-gnu-c-debug/include/*
>
> petscaodef.mod     petscda.mod     petsckspdef.mod     petscmeshdef.mod
> petscpcdef.mod    petscsys.mod
>
> petscao.mod        petscdef.mod    petscksp.mod        petscmesh.mod
> petscpc.mod       petsctsdef.mod
>
> petscconf.h        petscfix.h      petscmachineinfo.h  petscmgdef.mod
> petscsnesdef.mod  petscts.mod
>
> petscconfiginfo.h  petscisdef.mod  petscmatdef.mod     petscmg.mod
> petscsnes.mod     petscvecdef.mod
>
> petscdadef.mod     petscis.mod     petscmat.mod        petsc.mod
> petscsysdef.mod   petscvec.mod
>
>
>
> I have set PETSC_ARCH =linux-gnu or linux-gnu-c-debug in bashrc file.
>
>
>
> *Now I wanted to install OOFEM parallel module.*
>
>
>
> #export OOFEM_DIR=/home/shraddha/ONAMA/mechanical/OOFEM/oofem-1.8
>
> *export OOFEM_DIR=/home/shraddha/ONAMA/mechanical/OOFEM/oofem-1.9*
>
>
>
>
>
> *./configure* --prefix=/home/shraddha/ONAMA/mechanical/OOFEM/oofem-1.9
> --enable-poofem --with-MPIDIR=/opt/mpich2/gnu --enable-petsc
> --with-PETSCDIR=/home/shraddha/PETSC/petsc-31p4/petsc-3.1-p4
> --with-PARMETISDIR=/home/shraddha/PARMETIS/gnu/ParMetis-3.1.1 *
> PETSC_ARCH=linux-gnu-c-debug* CXX=mpicxx
>
>
>
> *make*
>
>
>
> *makefile:10: /home/shraddha/PETSC/petsc-31p4/petsc-3.1-p4/conf/base: No
> such file or directory*
>
> makefile:63: generalbc.d: No such file or directory
>
> makefile:63: boundary.d: No such file or directory
>
> makefile:63: crosssection.d: No such file or directory
>
> makefile:63: dictionr.d: No such file or directory
>
> makefile:63: dof.d: No such file or directory
>
>
>
> I am not having *petsc-3.1-p4/conf/base file.*
>
> *What should I do in this case???Please guide me.*
>
> * *
>
> Another kind of error I am getting when I am trying to install SLEPc
> library:
>
>
>
> *slepc-3.1-p2]$ ./configure --help*
>
> SLEPc Configure Help
>
>
> --------------------------------------------------------------------------------
>
>   --prefix=<dir>                   : Specifiy location to install SLEPc
> (e.g., /usr/local)
>
> ARPACK:
>
>   --with-arpack                    : Indicate if you wish to test for
> ARPACK (PARPACK)
>
>   --with-arpack-dir=<dir>          : Indicate the directory for ARPACK
> libraries
>
>   --with-arpack-flags=<flags>      : Indicate comma-separated flags for
> linking ARPACK
>
> BLZPACK:
>
>   --with-blzpack                   : Indicate if you wish to test for
> BLZPACK
>
>   --with-blzpack-dir=<dir>         : Indicate the directory for BLZPACK
> libraries
>
>   --with-blzpack-flags=<flags>     : Indicate comma-separated flags for
> linking BLZPACK
>
> TRLAN:
>
>   --with-trlan                     : Indicate if you wish to test for TRLAN
>
>   --with-trlan-dir=<dir>           : Indicate the directory for TRLAN
> libraries
>
>   --with-trlan-flags=<flags>       : Indicate comma-separated flags for
> linking TRLAN
>
> PRIMME:
>
>   --with-primme                    : Indicate if you wish to test for
> PRIMME
>
>   --with-primme-dir=<dir>          : Indicate the directory for PRIMME
> libraries
>
>   --with-primme-flags=<flags>      : Indicate comma-separated flags for
> linking PRIMME
>
> slepc4py:
>
>   --download-slepc4py              : Download and install slepc4py in SLEPc
> directory
>
>
>
> *slepc-3.1-p2]$ ./configure*--prefix=/home/shraddha/ONAMA/mechanical/OOFEM/SLEPc/slepc-3.1-p2
>
>
>
> Checking environment...
>
> ERROR: SLEPc cannot be configured for non-source installation if PETSc is
> not configured in the same way.
>
>
>
> Please Guide me regarding this.
>
>
>
> Regards,
>
> Shraddha Desai
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
>



-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100907/179c397f/attachment-0001.htm>


More information about the petsc-users mailing list