Can anyone help me set the environmental variables for configuring the software SLEPc (a library for the solution of large sparse eigenproblems on parallel computers). I am using in Ubuntu 16.04 LTS.
I have used petsc-3.2 Docs: Installation and PETSc Documentation: Installation pages as a guideline, where it states:
specify enviornment variable for csh/tcsh
[can be specified in ~/.cshrc
]
setenv PETSC_DIR /home/balay/petsc-3.7.0
setenv PETSC_ARCH linux-gnu-c-debug
specify enviornment variable for bash
[can be specified in ~/.bashrc
]
export PETSC_DIR=/home/balay/petsc-3.7.0
export PETSC_ARCH=linux-gnu-c-debug
I get error message:
$ ./configure
Checking environment...
ERROR: PETSC_DIR enviroment variable is not set
I have added to the end of my ~/.bashrc
file the following:
export SLEPC_DIR=/home/brendan/Documents/slepc/slepc
export PETSC_DIR=/home/brendan/Documents/petsc_2/petsc
export PETSC_ARCH=/home/brendan/Documents/petsc_2/petsc/arch-linux2-c-debug
and to my ~/.cshrc
file:
setenv SLEPC_DIR=/home/brendan/Documents/slepc/slepc
setenv PETSC_DIR=/home/brendan/Documents/petsc_2/petsc
setenv PETSC_ARCH=/home/brendan/Documents/petsc_2/petsc/arch-linux2-c-debug