microsoft / vcpkg

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

[libpq] Build failure on x64-linux #41126

Closed rabii-chaarani closed 2 weeks ago

rabii-chaarani commented 2 weeks ago

Package: libpq[core,lz4,openssl,zlib]:x64-linux@16.4

Host Environment

To Reproduce

vcpkg install gdal

Failure logs

-- Using cached postgresql-16.4.tar.bz2.
-- Cleaning sources at /home/rabii/Git_Repos/vcpkg/buildtrees/libpq/src/tgresql-16-0b2040c781.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/rabii/Git_Repos/vcpkg/downloads/postgresql-16.4.tar.bz2
-- Applying patch unix/installdirs.patch
-- Applying patch unix/fix-configure.patch
-- Applying patch unix/single-linkage.patch
-- Applying patch unix/no-server-tools.patch
-- Applying patch unix/mingw-install.patch
-- Applying patch unix/python.patch
-- Applying patch windows/macro-def.patch
-- Applying patch windows/win_bison_flex.patch
-- Applying patch windows/msbuild.patch
-- Applying patch windows/spin_delay.patch
-- Applying patch android/unversioned_so.patch
-- Using source at /home/rabii/Git_Repos/vcpkg/buildtrees/libpq/src/tgresql-16-0b2040c781.clean
-- Getting CMake variables for x64-linux
CMake Error at scripts/cmake/vcpkg_find_acquire_program.cmake:166 (message):
  Could not find bison.  Please install it via your package manager:

      sudo apt-get install bison
Call Stack (most recent call first):
  ports/libpq/portfile.cmake:43 (vcpkg_find_acquire_program)
  scripts/ports.cmake:192 (include)
rabii-chaarani commented 2 weeks ago

resolved by installing flex - sudo apt-get install flex