Hi,
I am attempting to install opencarp on my ubuntu machine, but it is leading to an error when I try to run the following line:
cmake -S. -B_build -DDLOPEN=ON -DBUILD_EXTERNAL=ON -DCMAKE_BUILD_TYPE=Release
The above line leads to this error:
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
PETSc could not be found. Be sure to set PETSC_DIR. (missing:
PETSC_FOUND)
I have installed PETSc in /home/silvalab/Desktop/petsc/petsc and have created a PETSC_DIR environmental variable in etc/enviornment by adding the line
PETSC_DIR= "/home/silvalab/Desktop/petsc/petsc"
to the environment file as well as even the .profile file which some internet sources said was a way to add environment variables to ubuntu. I made sure to even restart the computer after modifying either file each time to get the environment variables setup correctly, but I am still receiving the same error. Am I setting PETSC_DIR as an environmental variable in ubuntu improperly?