microsoft / vcpkg

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

Vcpkg displays "cannot find suitable version of powershell core" #10935

Closed lanyizi closed 4 years ago

lanyizi commented 4 years ago

Describe the bug Vcpkg displays "cannot find suitable version of powershell core" when it's already installed on my computer.

Environment

To Reproduce Steps to reproduce the behavior:

  1. ./vcpkg install boost image

Expected behavior It should detect I already have powershell core installed (unless pscore 7.0.0 is incompatible with 6.2.1). Actually, I also have 7-zip and nuget installed on this computer. How can I let vcpkg know that they exist?

Failure logs

Click to expand ``` ./vcpkg install boost Computing installation plan... The following packages will be built and installed: boost[core]:x86-windows * boost-accumulators[core]:x86-windows * boost-algorithm[core]:x86-windows * boost-align[core]:x86-windows * boost-any[core]:x86-windows * boost-array[core]:x86-windows * boost-asio[core]:x86-windows * boost-assert[core]:x86-windows * boost-assign[core]:x86-windows * boost-atomic[core]:x86-windows * boost-beast[core]:x86-windows * boost-bimap[core]:x86-windows * boost-bind[core]:x86-windows * boost-build[core]:x86-windows * boost-callable-traits[core]:x86-windows * boost-chrono[core]:x86-windows * boost-circular-buffer[core]:x86-windows * boost-compatibility[core]:x86-windows * boost-compute[core]:x86-windows * boost-concept-check[core]:x86-windows * boost-config[core]:x86-windows * boost-container[core]:x86-windows * boost-container-hash[core]:x86-windows * boost-context[core]:x86-windows * boost-contract[core]:x86-windows * boost-conversion[core]:x86-windows * boost-convert[core]:x86-windows * boost-core[core]:x86-windows * boost-coroutine[core]:x86-windows * boost-coroutine2[core]:x86-windows * boost-crc[core]:x86-windows * boost-date-time[core]:x86-windows * boost-detail[core]:x86-windows * boost-disjoint-sets[core]:x86-windows * boost-dll[core]:x86-windows * boost-dynamic-bitset[core]:x86-windows * boost-endian[core]:x86-windows * boost-exception[core]:x86-windows * boost-fiber[core]:x86-windows * boost-filesystem[core]:x86-windows * boost-flyweight[core]:x86-windows * boost-foreach[core]:x86-windows * boost-format[core]:x86-windows * boost-function[core]:x86-windows * boost-function-types[core]:x86-windows * boost-functional[core]:x86-windows * boost-fusion[core]:x86-windows * boost-geometry[core]:x86-windows * boost-gil[core]:x86-windows * boost-graph[core]:x86-windows * boost-graph-parallel[core]:x86-windows * boost-hana[core]:x86-windows * boost-heap[core]:x86-windows * boost-histogram[core]:x86-windows * boost-hof[core]:x86-windows * boost-icl[core]:x86-windows * boost-integer[core]:x86-windows * boost-interprocess[core]:x86-windows * boost-interval[core]:x86-windows * boost-intrusive[core]:x86-windows * boost-io[core]:x86-windows * boost-iostreams[core]:x86-windows * boost-iterator[core]:x86-windows * boost-lambda[core]:x86-windows * boost-lexical-cast[core]:x86-windows * boost-local-function[core]:x86-windows * boost-locale[core]:x86-windows * boost-lockfree[core]:x86-windows * boost-log[core]:x86-windows * boost-logic[core]:x86-windows * boost-math[core]:x86-windows * boost-metaparse[core]:x86-windows * boost-modular-build-helper[core]:x86-windows * boost-move[core]:x86-windows * boost-mp11[core]:x86-windows * boost-mpl[core]:x86-windows * boost-msm[core]:x86-windows * boost-multi-array[core]:x86-windows * boost-multi-index[core]:x86-windows * boost-multiprecision[core]:x86-windows * boost-numeric-conversion[core]:x86-windows * boost-odeint[core]:x86-windows * boost-optional[core]:x86-windows * boost-outcome[core]:x86-windows * boost-parameter[core]:x86-windows * boost-parameter-python[core]:x86-windows * boost-phoenix[core]:x86-windows * boost-poly-collection[core]:x86-windows * boost-polygon[core]:x86-windows * boost-pool[core]:x86-windows * boost-predef[core]:x86-windows * boost-preprocessor[core]:x86-windows * boost-process[core]:x86-windows * boost-program-options[core]:x86-windows * boost-property-map[core]:x86-windows * boost-property-tree[core]:x86-windows * boost-proto[core]:x86-windows * boost-ptr-container[core]:x86-windows * boost-python[core]:x86-windows * boost-qvm[core]:x86-windows * boost-random[core]:x86-windows * boost-range[core]:x86-windows * boost-ratio[core]:x86-windows * boost-rational[core]:x86-windows * boost-regex[core]:x86-windows * boost-safe-numerics[core]:x86-windows * boost-scope-exit[core]:x86-windows * boost-serialization[core]:x86-windows * boost-signals2[core]:x86-windows * boost-smart-ptr[core]:x86-windows * boost-sort[core]:x86-windows * boost-spirit[core]:x86-windows * boost-stacktrace[core]:x86-windows * boost-statechart[core]:x86-windows * boost-static-assert[core]:x86-windows * boost-system[core]:x86-windows * boost-test[core]:x86-windows * boost-thread[core]:x86-windows * boost-throw-exception[core]:x86-windows * boost-timer[core]:x86-windows * boost-tokenizer[core]:x86-windows * boost-tti[core]:x86-windows * boost-tuple[core]:x86-windows * boost-type-erasure[core]:x86-windows * boost-type-index[core]:x86-windows * boost-type-traits[core]:x86-windows * boost-typeof[core]:x86-windows * boost-ublas[core]:x86-windows * boost-units[core]:x86-windows * boost-unordered[core]:x86-windows * boost-utility[core]:x86-windows * boost-uuid[core]:x86-windows * boost-variant[core]:x86-windows * boost-variant2[core]:x86-windows * boost-vcpkg-helpers[core]:x86-windows * boost-vmd[core]:x86-windows * boost-wave[core]:x86-windows * boost-winapi[core]:x86-windows * boost-xpressive[core]:x86-windows * boost-yap[core]:x86-windows * bzip2[core]:x86-windows * libffi[core]:x86-windows * liblzma[core]:x86-windows * openssl[core]:x86-windows * openssl-windows[core]:x86-windows * python3[core]:x86-windows * zlib[core]:x86-windows * zstd[core]:x86-windows Additional packages (*) will be modified to complete this operation. A suitable version of powershell-core was not found (required v6.2.1). Downloading portable powershell-core v6.2.1... Downloading powershell-core... https://github.com/PowerShell/PowerShell/releases/download/v6.2.1/PowerShell-6.2.1-win-x86.zip -> C:\Users\lanyi\source\repos\vcpkg\downloads\PowerShell-6.2.1-win-x86.zip Extracting powershell-core... A suitable version of 7zip was not found (required v18.1.0). Downloading portable 7zip v18.1.0... Downloading 7zip... https://www.nuget.org/api/v2/package/7-Zip.CommandLine/18.1.0 -> C:\Users\lanyi\source\repos\vcpkg\downloads\7-zip.commandline.18.1.0.nupkg Extracting 7zip... A suitable version of nuget was not found (required v4.8.1). Downloading portable nuget v4.8.1... Downloading nuget... https://dist.nuget.org/win-x86-commandline/v4.8.1/nuget.exe -> C:\Users\lanyi\source\repos\vcpkg\downloads\nuget.exe Starting package 1/148: boost-vcpkg-helpers:x86-windows Building package boost-vcpkg-helpers[core]:x86-windows... Warning: The following VS instances are excluded because the English language pack is unavailable. C:\Program Files (x86)\Microsoft Visual Studio\2019\Community Please install the English language pack. Could not locate a complete toolset. The following paths were examined: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\dumpbin.exe ```
MVoz commented 4 years ago

**

Please install the English language pack. Could not locate a complete toolset.

**

ghost commented 4 years ago

@BSG-75

NancyLi1013 commented 4 years ago

Hi @BSG-75 Thanks for posting this issue.

Please check first as @Voskrese and @timautry said above.

NancyLi1013 commented 4 years ago

@BSG-75 Please let me know if this issue still exists now.

lanyizi commented 4 years ago

@NancyLi1013 Sorry for the late reply, I knew about the English Language pack, I was just wondering why would it install powershell core when I already have one installed. But since

it does this regardless of another version of powertools is installed and in the %PATH% variable.

I think I'd just let vcpkg install it.

NancyLi1013 commented 4 years ago

It seems that powershellwill always be downloaded when you install the first port. This also happens on my machine.

NancyLi1013 commented 4 years ago

Currently vcpkg will use powershell that vcpkg provides to build ports. So I think this should not be a problem for now. Please feel free to reopen this if it is still a problem for you.