diff --git a/content/docs/installation/building-from-source/installation-source-dependencies.md b/content/docs/installation/building-from-source/installation-source-dependencies.md index 21abdd4f00..72d839a105 100644 --- a/content/docs/installation/building-from-source/installation-source-dependencies.md +++ b/content/docs/installation/building-from-source/installation-source-dependencies.md @@ -254,16 +254,16 @@ If you prefer to install the most recent version from source, do the following: 3. Use the `make` command as the configure script proposes, e.g. `make PETSC_DIR=/path/to/petsc PETSC_ARCH=arch-linux-c-opt all` Further documentation see the [PETSc installation documentation](https://petsc.org/release/install/). -4. Usage: You will need to add PETSc to your dynamic linker search path (`LD_LIBRARY_PATH` on Linux or `DYLD_LIBRARY_PATH` on macOS). You may also need to set the `$PETSC_ARCH`. - -Finally, in some cases you may need to have PETSc in your `CPATH`, `LIBRARY_PATH`, or `PYTHONPATH`. Here is an example: +4. Usage: You will need to add PETSc to your pkg-config path (`PKG_CONFIG_PATH`). Here is an example: ```bash export PETSC_DIR="/path/to/petsc" export PETSC_ARCH="arch-linux-c-opt" - export LD_LIBRARY_PATH="$PETSC_DIR/$PETSC_ARCH/lib:$LD_LIBRARY_PATH" + export PKG_CONFIG_PATH="$PETSC_DIR/$PETSC_ARCH/lib/pkgconfig" ``` + Check that `pkg-config --libs --cflags PETSc` returns valid paths. + ### Ginkgo preCICE optionally uses [Ginkgo](https://ginkgo-project.github.io/) for GPU- and OpenMP-accelerated [global radial-basis function mappings](configuration-mapping.html#execution-backends). To enable the feature in preCICE, use the CMake option `-DPRECICE_FEATURE_GINKGO_MAPPING=ON`. Using this feature in preCICE requires additionally [Kokkos](https://kokkos.org/).