Hi users,
I have a problem installing Firedrake with Petsc.
Initially install using the following steps:
curl -O https://raw.githubusercontent.com/firedrakeproject/firedrake/master/scripts/firedrake-install
unset PYTHONPATH; unset PETSC_DIR; unset PETSC_ARCH;
python3 firedrake-install

and it works on installation, only when testing my code with the discontinuous Galerkin hybrid method (HDG) it gave the following error:

(firedrake) hpc@hpc:~/Downloads/Exemplos_Firedrake/HDG/poroso/MWE/SDHM$ python3 sdhm_monolithic.py
Traceback (most recent call last):
  File "sdhm_monolithic.py", line 1, in <module>
    from firedrake import *
  File "/home/hpc/firedrake/src/firedrake/firedrake/__init__.py", line 8, in <module>
    raise ImportError("PETSC_DIR is set, but you did not install with --honour-petsc-dir.\n"
ImportError: PETSC_DIR is set, but you did not install with --honour-petsc-dir.
Please unset PETSC_DIR (and PETSC_ARCH) before using Firedrake.




try installing with python3 firedrake-install --honor-petsc-dir, but I have the following error:
hpc @ hpc: ~ $ python3 firedrake-install --honor-petsc-dir
Running firedrake-install --honor-petsc-dir
The --honor-petsc-dir is set, but PETSC_DIR environment variable is
not defined. If you have compiled PETSc manually, set PETSC_DIR
(and optionally PETSC_ARCH) variables to point to the build directory.

could you help me on how to solve that problem, please.

Best regards,
Emmanuel Y. Medina
Ph.D Student in UFJF-Brazil