td icon indicating copy to clipboard operation
td copied to clipboard

Error while installing packages ./vcpkg.exe install gperf:x64-windows openssl:x64-windows zlib:x64-windows

Open ganandh opened this issue 1 year ago • 10 comments

I was trying to install the packages for proceed with building tdlib for C# Windows CLI.

But every time I run the command I get the same error for all 3 packages

error: building openssl:x64-windows failed with: BUILD_FAILED Elapsed time to handle openssl:x64-windows: 8.1 s 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+openssl You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[openssl]+Build+error+on+x64-windows&body=Copy+issue+body+from+D%3A%2FGah%2FGit%2Ftd%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

The above is the error message for openssl. Like this every package returns error.

What is the solution for this ?

ganandh avatar Jul 03 '24 06:07 ganandh

i got same in vs 2022 installed pc but i run in vs2015 installed pc it worked without error

isuruwe avatar Jul 03 '24 07:07 isuruwe

Did you check content of the file td/vcpkg/installed/vcpkg/issue_body.md?

levlam avatar Jul 03 '24 09:07 levlam

Did you check content of the file td/vcpkg/installed/vcpkg/issue_body.md?

There was the same error message.

ganandh avatar Jul 03 '24 10:07 ganandh

i got same in vs 2022 installed pc but i run in vs2015 installed pc it worked without error

Let me try in VS 2015 and see what happens

ganandh avatar Jul 03 '24 10:07 ganandh

There was the same error message.

No, the file should contains all details about the issue, for example, absence of C++ build tools.

levlam avatar Jul 03 '24 11:07 levlam

There was the same error message.

No, the file should contains all details about the issue, for example, absence of C++ build tools.

Package: zlib:[email protected]

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.0.24215.1
  • vcpkg-tool version: 2024-06-10-02590c430e4ed9215d27870138c2e579cc338772 vcpkg-scripts version: 2444315f1 2024-07-03 (5 hours ago)

To Reproduce

vcpkg install zlib

Failure logs

-- Downloading https://github.com/madler/zlib/archive/v1.3.1.tar.gz -> madler-zlib-v1.3.1.tar.gz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from D:\Gah\vcp\vcpkg\vcpkg-bundle.json
[DEBUG] Failed to open: D:\Gah\vcp\vcpkg\vcpkg-bundle.json
[DEBUG] Bundle config: readonly=false, usegitregistry=false, embeddedsha=nullopt, deployment=Git, vsversion=nullopt
[DEBUG] Metrics enabled.
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Feature flag 'dependencygraph' unset
Downloading https://github.com/madler/zlib/archive/v1.3.1.tar.gz
warning: Download failed -- retrying after 1000ms
warning: Download failed -- retrying after 2000ms
warning: Download failed -- retrying after 4000ms
error: Failed to download from mirror set
error: https://github.com/madler/zlib/archive/v1.3.1.tar.gz: WinHttpSendRequest failed with exit code 12007
error: https://github.com/madler/zlib/archive/v1.3.1.tar.gz: WinHttpSendRequest failed with exit code 12007
error: https://github.com/madler/zlib/archive/v1.3.1.tar.gz: WinHttpSendRequest failed with exit code 12007
error: https://github.com/madler/zlib/archive/v1.3.1.tar.gz: WinHttpSendRequest failed with exit code 12007
[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(997): 
[DEBUG] Time in subprocesses: 0us
[DEBUG] Time in parsing JSON: 5us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 14631us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 7.1 s (7050784us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):
      
      Failed to download file with error: 1
      If you are using a proxy, please check your proxy setting. Possible causes are:
      
      1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
         to `https://address:port`. This is not correct, because `https://` prefix
         claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
         , etc..) is an HTTP proxy. Try setting `http://address:port` to both
         HTTP_PROXY and HTTPS_PROXY instead.
      
      2. If you are using Windows, vcpkg will automatically use your Windows IE Proxy Settings
         set by your proxy software. See https://github.com/microsoft/vcpkg-tool/pull/77
         The value set by your proxy might be wrong, or have same `https://` prefix issue.
      
      3. Your proxy's remote server is out of service.
      
      If you've tried directly download the link, and believe this is not a temporary
      download server failure, please submit an issue at https://github.com/Microsoft/vcpkg/issues
      to report this upstream download server failure.
      

Call Stack (most recent call first):
  scripts/cmake/vcpkg_download_distfile.cmake:270 (z_vcpkg_download_distfile_show_proxy_and_fail)
  scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
  ports/zlib/portfile.cmake:2 (vcpkg_from_github)
  scripts/ports.cmake:192 (include)



ganandh avatar Jul 03 '24 21:07 ganandh

If anyone have dll for .net to read and send message function share that I will manage with that

ganandh avatar Jul 04 '24 01:07 ganandh

If anyone have dll for .net to read and send message function share that I will manage with that

here https://drive.google.com/file/d/176XrhoDA5Lqz-d4wyhfHBNsIIeux8zAQ/view?usp=sharing

isuruwe avatar Jul 04 '24 04:07 isuruwe

@ganandh

Failed to download file with error: 1

Likely, github.com is blocked in your area.

levlam avatar Jul 04 '24 06:07 levlam

i have the similar problem, but with python. did you find the solution???

PepLaz avatar Oct 18 '24 17:10 PepLaz