Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error using vcpkg #2196

Open
kensma opened this issue Oct 31, 2024 · 1 comment
Open

Installation error using vcpkg #2196

kensma opened this issue Oct 31, 2024 · 1 comment

Comments

@kensma
Copy link

kensma commented Oct 31, 2024

Describe the bug
Installation error using vcpkg, I followed the tutorial video to implement it.

vcpkg install drogon:x64-windows

output:

Building drogon:[email protected]...
-- Using cached an-tao-drogon-v1.9.7.tar.gz.
-- Extracting source C:/Users/kensm/source/vcpkg/downloads/an-tao-drogon-v1.9.7.tar.gz
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: "C:/Program Files/CMake/bin/cmake.exe" -E tar xjf C:/Users/kensm/source/vcpkg/downloads/an-tao-drogon-v1.9.7.tar.gz
    Working Directory: C:/Users/kensm/source/vcpkg/buildtrees/drogon/src/v1.9.7-6a37c2250f.clean.tmp
    Error code: 1
    See logs for more information:
      C:\Users\kensm\source\vcpkg\buildtrees\drogon\extract-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_extract_source_archive.cmake:120 (vcpkg_execute_required_process)
  scripts/cmake/vcpkg_extract_source_archive_ex.cmake:8 (vcpkg_extract_source_archive)
  scripts/cmake/vcpkg_from_github.cmake:113 (vcpkg_extract_source_archive_ex)
  ports/drogon/portfile.cmake:1 (vcpkg_from_github)
  scripts/ports.cmake:192 (include)


error: building drogon:x64-windows failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle drogon:x64-windows: 173 ms
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+drogon
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[drogon]+Build+error+on+x64-windows&body=Copy+issue+body+from+C%3A%2FUsers%2Fkensm%2Fsource%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

stdout-x64-windows.log

-- Using cached an-tao-drogon-v1.9.7.tar.gz.
-- Extracting source C:/Users/kensm/source/vcpkg/downloads/an-tao-drogon-v1.9.7.tar.gz
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: "C:/Program Files/CMake/bin/cmake.exe" -E tar xjf C:/Users/kensm/source/vcpkg/downloads/an-tao-drogon-v1.9.7.tar.gz
    Working Directory: C:/Users/kensm/source/vcpkg/buildtrees/drogon/src/v1.9.7-6a37c2250f.clean.tmp
    Error code: 1
    See logs for more information:
      C:\Users\kensm\source\vcpkg\buildtrees\drogon\extract-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_extract_source_archive.cmake:120 (vcpkg_execute_required_process)
  scripts/cmake/vcpkg_extract_source_archive_ex.cmake:8 (vcpkg_extract_source_archive)
  scripts/cmake/vcpkg_from_github.cmake:113 (vcpkg_extract_source_archive_ex)
  ports/drogon/portfile.cmake:1 (vcpkg_from_github)
  scripts/ports.cmake:192 (include)

extract-err.log

CMake Error: Problem with archive_write_header(): Invalid empty pathname
CMake Error: Current file: 
CMake Error: Problem extracting tar: C:/Users/kensm/source/vcpkg/downloads/an-tao-drogon-v1.9.7.tar.gz

Desktop (please complete the following information):

  • OS: Windows 11 23H2

Thank you for your assistance. What should I do?

@ChandrapalSd
Copy link

I faced the same issue when trying to use Drogon with vcpkg. To work around it, I cloned the repository and built it as a static library instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants