Install-WSMan Not Working on Big Sur 11.2.2 on a 2020 M1 MacBook Pro
KeithSieman opened this issue · 2 comments
KeithSieman commented
SUMMARY
Install-WSMan returns:
PS /private/tmp> Install-WSMan -Verbose
VERBOSE: Attempting to get OpenSSL info with brew --prefix openssl
STDOUT: /opt/homebrew/opt/openssl@3
STDERR:
RC: 0
VERBOSE: Attempting to get OpenSSL info port contents openssl
VERBOSE: Host Info:
Install-WSMan: Failed to select the necessary library, the host isn't macOS, Linux based on GLIBC or musl, or OpenSSL isn't installed
LIBMI VERSION
The link in the comment returns a 404 Error.....
OS / ENVIRONMENT
PS /private/tmp> $PSVersionTable
Name Value
---- -----
PSVersion 7.1.4
PSEdition Core
GitCommitId 7.1.4
OS Darwin 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
PS /private/tmp>
PS /private/tmp> openssl version
LibreSSL 2.8.3
wtfiwtz commented
There are many existing issues, even on Intel laptops - PowerShell/PowerShell#11216
jborean93 commented
This is a duplicate of #26. The openssl
at /opt/homebrew
is the ARM library which is not usable by x64 pwsh/omi (you cannot combine them both). To solve this you need to
- Install the x64 Homebrew which resides in
/usr/local
- Use that to install an x64 version of OpenSSL
- Ensure
brew
for x64 is first in thePATH
when you are running `pwsh - Run
Install-WSMan
This is not ideal and I'm hoping to make this a bit better which is why I opened #26.