[petsc-users] SLEPc configuration error related to PETSC_ARCH

Jose E. Roman jroman at dsic.upv.es
Sun Aug 12 01:39:53 CDT 2012


El 12/08/2012, a las 06:24, Kyunghoon Lee escribió:

> Hello all,
> 
> I'm having a trouble with installing SLEPc with the PETSC_ARCH variable.  I installed PETSc on my Linux as follows:
> 
> export PETSC_DIR=$PWD
> export PETSC_ARCH=arch-linux-cxx-debug-real
> export CXX="/usr/bin/mpicxx"
> export CC="/usr/bin/mpicc"
> ./configure --prefix=/home/aeronova/Development/local/lib/petsc/3.3-p2 --download-mpich=1 --download-blacs=1 --download-metis=1 --download-parmetis=1 --download-scalapack=1 --download-mumps=1 --download-umfpack=1 --with-clanguage=C++
> make PETSC_DIR=/home/aeronova/Development/local/share/petsc/3.3-p2 PETSC_ARCH=arch-linux-cxx-debug-real all
> make PETSC_DIR=/home/aeronova/Development/local/share/petsc/3.3-p2 PETSC_ARCH=arch-linux-cxx-debug-real install
> make PETSC_DIR=/home/aeronova/Development/local/lib/petsc/3.3-p2 test
> 
> Then, I tried to install SLEPc as below
> 
> export SLEPC_DIR=$PWD
> export CXX="/usr/bin/mpicxx"
> export CC="/usr/bin/mpicc"
> export PETSC_DIR=/home/aeronova/Development/local/lib/petsc/3.3-p2
> export PETSC_ARCH=arch-linux-cxx-debug-real
> ./configure --prefix=/home/aeronova/Development/local/lib/slepc/3.3-p1
> 
> , which gives an error:
> 
> Checking environment...
> ERROR: PETSc is not configured for architecture arch-linux-cxx-debug-real
> 
> The error is confusing since I configured/installed PETSc with PETSC_ARCH=arch-linux-cxx-debug-real.  I'd appreciate if someone could help me with this problem. 
> 
> Regards,
> K. Lee.
> 

You have to unset PETSC_ARCH. Follow the instructions in section 1.2.4 of SLEPc's manual.
Jose



More information about the petsc-users mailing list