cmake 和软件包 libccext2 的问题

cmake 和软件包 libccext2 的问题
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/etherlab ../pdserv-1.1.0
-- Mercurial was not found.
-- checking for module 'libccext2'
--   package 'libccext2' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)
  CMakeLists.txt:116 (PKG_CHECK_MODULES)


-- Configuring incomplete, errors occurred!
See also "/usr/local/etherlab/src/pdserv-1.1.0-build/CMakeFiles/CMakeOutput.log".

我已经尝试过了

sudo apt-get install libccext2

但它不起作用。我明白

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libccext2

我该如何解决这个问题?谢谢。

答案1

该库适用于所有 Ubuntu 版本http://packages.ubuntu.com/search?keywords=commoncpp&searchon=names

sudo apt install libcommoncpp2-dev

提供

/usr/lib/x86_64-linux-gnu/libccext2.a
/usr/lib/x86_64-linux-gnu/libccext2.la
/usr/lib/x86_64-linux-gnu/libccext2.so
/usr/lib/x86_64-linux-gnu/libccgnu2.a
/usr/lib/x86_64-linux-gnu/libccgnu2.la
/usr/lib/x86_64-linux-gnu/libccgnu2.so
/usr/lib/x86_64-linux-gnu/pkgconfig/libccext2.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/libccgnu2.pc

http://packages.ubuntu.com/xenial/amd64/libcommoncpp2-dev/filelist

相关内容