From: Harry P. <har...@gm...> - 2018-10-19 19:03:15
|
Libmesh Users, I am having trouble with getting slepc to read my PETSC_DIR environment variable. I successfully installed PETSC and set the environment variable for PETSC_DIR in my .bashrc file. When I try execute the following slepc configure script this is what happens: *hpearce@tcol:/islhome/hpearce/Libmesh_installation_starting_05_03_18/slepc-3.9.1$ sudo ./configureChecking environment... ERROR: PETSC_DIR enviroment variable is not set* I already double checked my .bashrc file, which is of relevance because I'm using a bash shell. The configure code in SLEPC activates a configure.py code. I used print commands to find the offending line of code in configure.py, which read: *petsc.InitDir(slepc.prefixdir)* I know InitDir() is a property in python, but I couldn't find the definition of slepc.prefixdir. I did notice a line of code related to prefixdir which said: * pkgconfig.write('prefix=%s\n' % prefixdir)* I assume it means the directory just above the one with slepc. In that case I don't see why it didn't work to set the environment variable in the slepc directory or above it. I looked through the previous libmesh-users emails for help but that did not address the problem. I also looked at the stack exchange website, which did not help: https://stackoverflow.com/questions/42763517/configuring-the-software-slepc-issue-setting-environmental-variables . Any help would be appreciated (including telling me if it's inadvisable to ask this question on libmesh-users, since it's technically a SLEPC question). Thankfully, Harrison Rojak Pearce SDSU undergraduate in Chemistry |