microsoft / vcpkg

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

[cpr] build failure #42122

Open root83 opened 1 week ago

root83 commented 1 week ago

Operating system

x64-linux

Compiler

GCC

Steps to reproduce the behavior

./vcpkg install
with vcpkg.json

{
  "dependencies": [
    "cpr"
  ],
  "overrides": [
    { "name" : "cpr", "version": "1.5.2" }
  ]
}

Failure logs

Installing 1/1 cpr:x64-linux@1.5.2...
error: The following files are already installed in /home1/irteam/naver/search-env/package/vcpkg/vcpkg_installed/x64-linux and are in conflict with cpr:x64-linux
Installed by curl:x64-linux  
debug/lib/libcurl-d.a
    debug/lib/pkgconfig/libcurl.pc
    include/curl/curl.h
    include/curl/curlver.h
    include/curl/easy.h
    include/curl/mprintf.h
    include/curl/multi.h
    include/curl/stdcheaders.h
    include/curl/system.h
    include/curl/typecheck-gcc.h
    include/curl/urlapi.h
    lib/libcurl.a
    lib/pkgconfig/libcurl.pc

Elapsed time to handle cpr:x64-linux: 336 us`

Additional context

I tried to use an older version (1.5.2) but conflict occurs.

LilyWangLL commented 1 week ago

This issue can't repro on the latest vcpkg, the version 1.5.2 of cpr is too old, you could install the newer cpr and curl.