Yuesun,

Apparently, CMake was able to find the file petscvariables, but not the
include directories or the library.
Can you search for "libpetsc.so" yourself? Our CMake find module tries to
find this library in {PETSC_DIR}/lib or {PETSC_DIR}/lib64.
See if you can adjust PETSC_DIR accordingly.

Best,
Daniel

Am Fr., 24. Juli 2020 um 01:18 Uhr schrieb yuesu jin <jinyues...@gmail.com>:

> Dear all,
>   I am installing deal.ii with petsc on a cluster. After I compiled the
> petsc library (The arch folder name is arch-linux-c-debug) and gave a cmake
> argument -DPETSC_DIR=/home/yjin6/petsc
> cmake cannot find the petsc library .so file(It is in the folder), but it
> founds the version is 3.13.
> Could you tell me what's the possible reason why cmake cannot find the
> library?
> Best regards
> ***********************************************
> --- Include
> /home/yjin6/Deal.II/dealii-9.2.0/cmake/configure/configure_3_petsc.cmake
> -- PETSC_LIBRARY not found! Call:
> --     FIND_LIBRARY(PETSC_LIBRARY NAMES petsc libpetsc HINTS
> /home/yjin6/petsc /home/yjin6/petsc/ PATH_SUFFIXES lib lib64 lib)
> -- PETSC_INCLUDE_DIR_ARCH not found! Call:
> --     FIND_PATH(PETSC_INCLUDE_DIR_ARCH petscconf.h HINTS
> /home/yjin6/petsc /home/yjin6/petsc/ PATH_SUFFIXES petsc include
> include/petsc)
> -- Found PETSC_INCLUDE_DIR_COMMON
> -- Found PETSC_PETSCVARIABLES
> --   PETSC_VERSION: 3.13.3.0
> --   PETSC_LIBRARIES: *** Required variable "PETSC_LIBRARY" set to
> NOTFOUND ***
> --   PETSC_INCLUDE_DIRS: *** Required variable "PETSC_INCLUDE_DIR_ARCH"
> set to NOTFOUND ***
> --   PETSC_USER_INCLUDE_DIRS: *** Required variable
> "PETSC_INCLUDE_DIR_ARCH" set to NOTFOUND ***
> -- Could NOT find PETSC
> -- DEAL_II_WITH_PETSC has unmet external dependencies.
> --
> Yuesu Jin,
> Ph.D student,
> University of Houston,
> College of Natural Sciences and Mathematics,
> Department of Earth and Atmospheric Sciences,
> Houston, Texas 77204-5008
> 346-404-2062
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/CA%2B25a%3DJVitawqmwmYZ4-9XC8tcmc4EkgXC3_gTy6hjAcLL3Dxg%40mail.gmail.com
> <https://groups.google.com/d/msgid/dealii/CA%2B25a%3DJVitawqmwmYZ4-9XC8tcmc4EkgXC3_gTy6hjAcLL3Dxg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAOYDWb%2BPuHRk%3DWAtNcwt8PPm469pUSeLR1iiqTa3HZ2FmED_oA%40mail.gmail.com.

Reply via email to