John Peterson,
Thanks. I tried it with ./configure and it didn't work either but I will
ask the SLEPc developers about it.

Thankfully,
Harry Pearce

On Fri, Oct 19, 2018 at 12:27 PM John Peterson <jwpeter...@gmail.com> wrote:

>
>
> On Fri, Oct 19, 2018 at 1:03 PM Harry Pearce <harroontheg...@gmail.com>
> wrote:
>
>> 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)*
>>
>
>
> So... since it is SLEPc's configure script which is failing and not
> libmesh's, you may have better luck contacting the SLEPc developers for
> help debugging this problem.
>
> Off the top of my head though, the problem could be that you are running
> "sudo configure". This has the effect of running configure in an
> administrative account's (root) environment, and that environment probably
> does not set PETSC_DIR. configure shouldn't require elevated privileges,
> only the last step, "sudo make install" should require that.
>
> --
> John
>
>

_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to