[petsc-users] can't find PETSc package

paul zhang paulhuaizhang at gmail.com
Mon Dec 1 20:55:40 CST 2014


Some error messages attached.

-- Detecting CXX compiler ABI info - done
CMake Error at
/share/cluster/RHEL5.4/x86_64/apps/cmake/2.8.4/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91
(MESSAGE):
  PETSc could not be found.  Be sure to set PETSC_DIR and PETSC_ARCH.
  (missing: PETSC_INCLUDES PETSC_LIBRARIES PETSC_EXECUTABLE_RUNS)
Call Stack (most recent call first):

/share/cluster/RHEL5.4/x86_64/apps/cmake/2.8.4/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252
(_FPHSA_FAILURE_MESSAGE)
  cmake-modules-master/FindPETSc.cmake:324
(find_package_handle_standard_args)
  CMakeLists.txt:7 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
CMake Error at
/share/cluster/RHEL5.4/x86_64/apps/cmake/2.8.4/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91
(MESSAGE):
  PETSc could not be found.  Be sure to set PETSC_DIR and PETSC_ARCH.
  (missing: PETSC_INCLUDES PETSC_LIBRARIES PETSC_EXECUTABLE_RUNS)
Call Stack (most recent call first):

/share/cluster/RHEL5.4/x86_64/apps/cmake/2.8.4/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252
(_FPHSA_FAILURE_MESSAGE)
  cmake-modules-master/FindPETSc.cmake:324
(find_package_handle_standard_args)
  CMakeLists.txt:7 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!

Huaibao (Paul) Zhang
*Gas Surface Interactions Lab*
Department of Mechanical Engineering
University of Kentucky,
Lexington,
KY, 40506-0503
*Office*: 216 Ralph G. Anderson Building
*Web*:gsil.engineering.uky.edu

On Mon, Dec 1, 2014 at 9:53 PM, paul zhang <paulhuaizhang at gmail.com> wrote:

> Hi All,
>
> I am attempting to configure my CMakeLists.txt file to compile a simple
> program using PETSc. I installed PETSc on a cluster, and cmake cannot find
> it. Can you shed some light on how I can do?
>
> CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
>
> PROJECT(helloworld)
>
> SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake-modules")
>
> FIND_PACKAGE(PETSc REQUIRED)
>
> INCLUDE_DIRECTORIES(${PETSC_INCLUDES})
> ADD_DEFINITIONS(${PETSC_DEFINITIONS})
>
>
> Thanks,
> Paul
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141201/8b05a32a/attachment.html>


More information about the petsc-users mailing list