반응형
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에서 아래 테스트됨
brew install powershell
brew install openssl
pwsh
Install-Module -Name PowerShellGet
Install-Module -Name PSWSMan
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
반응형
'it-source' 카테고리의 다른 글
ng-repeat 내부 폼에 대한 AngularJs 동적 이름 (0) | 2023.09.23 |
---|---|
PowerShell에서 복잡한 COM 방식을 호출하는 방법은? (0) | 2023.09.23 |
printf () \t옵션 (0) | 2023.09.23 |
클릭 후 입력 텍스트를 지우려면 어떻게 해야 합니까? (0) | 2023.09.23 |
ToMany 관계에 속하는 관련 래벨 모델에서 ID 배열을 가져옵니다. (0) | 2023.09.23 |