microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.28k stars 6.42k forks source link

[bzip2] Build error on x64-linux #37521

Closed Santhosh642003 closed 8 months ago

Santhosh642003 commented 8 months ago

Package: bzip2[core,tool]:x64-linux@1.0.8#5

Host Environment

To Reproduce

vcpkg install kenlm Failure logs

-- Using cached bzip2-1.0.8.tar.gz.
-- Cleaning sources at /home/santhosh/Desktop/Mini Project/vcpkg/buildtrees/bzip2/src/bzip2-1-336d4794a3.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/santhosh/Desktop/Mini Project/vcpkg/downloads/bzip2-1.0.8.tar.gz
-- Applying patch fix-import-export-macros.patch
-- Using source at /home/santhosh/Desktop/Mini Project/vcpkg/buildtrees/bzip2/src/bzip2-1-336d4794a3.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Fixing pkgconfig file: /home/santhosh/Desktop/Mini Project/vcpkg/packages/bzip2_x64-linux/lib/pkgconfig/bzip2.pc
CMake Error at scripts/cmake/vcpkg_find_acquire_program.cmake:166 (message):
  Could not find pkg-config.  Please install it via your package manager:

      sudo apt-get install pkg-config
Call Stack (most recent call first):
  scripts/cmake/vcpkg_fixup_pkgconfig.cmake:193 (vcpkg_find_acquire_program)
  ports/bzip2/portfile.cmake:53 (vcpkg_fixup_pkgconfig)
  scripts/ports.cmake:175 (include)
github-actions[bot] commented 8 months ago

From the log:

  Could not find pkg-config.  Please install it via your package manager:

      sudo apt-get install pkg-config