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

vcpkg env does not work on linux #29559

Closed
soroshsabz opened this issue Feb 9, 2023 · 9 comments · Fixed by #30165
Closed

vcpkg env does not work on linux #29559

soroshsabz opened this issue Feb 9, 2023 · 9 comments · Fixed by #30165
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) requires:tool-release An issue that has been fixed in the microsoft/vcpkg-tool repo and is waiting for a release thereof

Comments

@soroshsabz
Copy link
Contributor

ITNOA

Describe the bug
I install vcpkg on clean linux with cloning from this repo and run ./vcpkg-bootstrap.sh,

after I run ../vcpkg/vcpkg env I got error like below

ssoroosh@ssoroosh-lap:~/test$ ../vcpkg/vcpkg env
A suitable version of cmake was not found (required v3.25.1) Downloading portable cmake 3.25.1...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-x86_64.tar.gz->/home/ssoroosh/vcpkg/downloads/cmake-3.25.1-linux-x86_64.tar.gz
Extracting cmake...
sh: 1: cmd: not found

Environment

  • OS: WSL (Ubuntu 22.04)
  • Compiler: ssoroosh@ssoroosh-lap:/test$ g++ --version
    g++ (Ubuntu 12.1.0-2ubuntu1
    22.04) 12.1.0

To Reproduce
Steps to reproduce the behavior:

  1. create directory
  2. run ../vcpkg/vcpkg env

Expected behavior
I expect create env

Failure logs

ssoroosh@ssoroosh-lap:~/test$ ../vcpkg/vcpkg env
A suitable version of cmake was not found (required v3.25.1) Downloading portable cmake 3.25.1...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-x86_64.tar.gz->/home/ssoroosh/vcpkg/downloads/cmake-3.25.1-linux-x86_64.tar.gz
Extracting cmake...
sh: 1: cmd: not found
@autoantwort
Copy link
Contributor

autoantwort commented Feb 9, 2023

Afaik this command is only for windows => The error message could be better

@soroshsabz
Copy link
Contributor Author

So I expect the error is clear about that

@soroshsabz
Copy link
Contributor Author

I create PR microsoft/vcpkg-tool#891

@FrankXie05 FrankXie05 added the requires:tool-release An issue that has been fixed in the microsoft/vcpkg-tool repo and is waiting for a release thereof label Feb 10, 2023
@JackBoosY
Copy link
Contributor

@FrankXie05 First label vcpkg bug, after the related fix PR merged, label vcpkg-tool-release.

@FrankXie05
Copy link
Contributor

Thanks to @JackBoosY for correcting the wrong label.

@FrankXie05 FrankXie05 added category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) and removed requires:tool-release An issue that has been fixed in the microsoft/vcpkg-tool repo and is waiting for a release thereof labels Feb 10, 2023
@soroshsabz
Copy link
Contributor Author

So, why requires:vcpkg-tool-release removed?

@JackBoosY
Copy link
Contributor

@FrankXie05 Add vcpkg-tool-release label.

@FrankXie05 FrankXie05 added the requires:tool-release An issue that has been fixed in the microsoft/vcpkg-tool repo and is waiting for a release thereof label Feb 17, 2023
@JackBoosY
Copy link
Contributor

JackBoosY commented Feb 17, 2023

Why close this issue? Was the new vcpkg tool release published?

@FrankXie05
Copy link
Contributor

Sorry, I thought the PR was merged by master. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) requires:tool-release An issue that has been fixed in the microsoft/vcpkg-tool repo and is waiting for a release thereof
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants