Open mikefedak opened 8 years ago
had the issue on lubuntu 16.04 when tried to compile from source with cmake:
XXX@XXX-desktop:~/src/grive2/build$ cmake ..
-- The C compiler identification is GNU 5.3.1
-- The CXX compiler identification is GNU 5.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found libgcrypt: -lgcrypt
-- Found CURL: /usr/lib/i386-linux-gnu/libcurl.so (found version "7.47.0")
-- Found EXPAT: /usr/lib/i386-linux-gnu/libexpat.so (found version "2.1.0")
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- program_options
-- filesystem
-- unit_test_framework
-- regex
-- system
-- Found libbfd: /usr/lib/i386-linux-gnu/libbfd.so
-- Found CppUnit: /usr/lib/i386-linux-gnu/libcppunit.so
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:418 (message):
pkg-config tool not found
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
libgrive/CMakeLists.txt:15 (pkg_check_modules)
-- Building unitary tests along with the library and the binary
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- program_options
-- Configuring incomplete, errors occurred!
See also "/home/XXX/src/grive2/build/CMakeFiles/CMakeOutput.log".
XXX@XXX-desktop:~/src/grive2/build$ cmake ..
SOLUTION that worked for me:
sudo apt-get install --reinstall pkg-config cmake-data
What?