it-source

macOS pwsh에서 "지원되는 WSMan 클라이언트 라이브러리를 찾을 수 없습니다." 오류가 발생했습니다.

criticalcode 2023. 9. 23. 22:46
반응형

macOS pwsh에서 "지원되는 WSMan 클라이언트 라이브러리를 찾을 수 없습니다." 오류가 발생했습니다.

macOS 터미널에서 실행할 때:

pwsh -command "Enter-PSSession myhost"

PowerShell에서 오류가 발생합니다.

Enter-PSSession: This parameter set requires WSMan, and no supported WSMan client
library was found. WSMan is either not installed or unavailable for this system.

해결책을 찾기 위해 2시간을 보냈습니다.저는 제 질문에 대답할 것입니다.

제가 한 일은 이렇습니다.

pwsh -Command 'Install-Module -Name PSWSMan'
sudo pwsh -Command 'Install-WSMan'

Matt Thornton에서 보기:macOS에서 Exchange 온라인 파워셸

MacOS 11.6에서 아래 테스트됨

  1. brew install powershell
  2. brew install openssl
  3. pwsh
  4. Install-Module -Name PowerShellGet
  5. Install-Module -Name PSWSMan
  6. sudo pwsh -Command 'Install-WSMan'

다음은 Mac에서 문제없이 작동합니다.

pwsh -Command 'Install-Module -Name PSWSMan'

sudo pwsh -Command 'Install-WSMan'

이 문제의 근본 원인은 이전 openssl 버전에 대한 Powershell 종속성입니다.GitHub 이슈인 PowerShell/#5561에 따르면 수정이 쉽지 않은 것 같습니다.

발견한 해결 방법은 다음과 같습니다.

curl -L https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb \
  -o openssl.rb
brew install ./openssl.rb

언급URL : https://stackoverflow.com/questions/65808121/error-no-supported-wsman-client-library-was-found-with-macos-pwsh

반응형