powerapi-ng / hwpc-sensor

Hardware Performance Counters monitoring agent for containers.
BSD 3-Clause "New" or "Revised" License
14 stars 16 forks source link

Receiving 'libczmq' missing error although czmq installed #28

Closed yaoyuan0801 closed 1 year ago

yaoyuan0801 commented 1 year ago

I am trying to compile this on Fedora 37 and get the following error. The reason why I am using Fedora 37 is that it is on kernel 6.1 and the perf tool works for the newest INTEL CPUs. However, even after czmq is installed I still get this error.

[yuan@fedora hwpc-sensor-1.1.2]$ cmake .
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Checking for module 'libczmq'
--   Package 'libczmq', required by 'virtual:world', not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:607 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal)
  CMakeLists.txt:14 (pkg_check_modules)
yaoyuan0801 commented 1 year ago

Update: The following packages need to be installed: libpfm-devel, libbson-devel and mongo-c-driver-devel.