jborean93 / omi

Open Management Infrastructure
Other
111 stars 13 forks source link

Install-WSMan Not Working on Big Sur 11.2.2 on a 2020 M1 MacBook Pro #37

Closed KeithSieman closed 3 years ago

KeithSieman commented 3 years ago
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 3 years ago

There are many existing issues, even on Intel laptops - https://github.com/PowerShell/PowerShell/issues/11216

jborean93 commented 3 years ago

This is a duplicate of https://github.com/jborean93/omi/issues/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

This is not ideal and I'm hoping to make this a bit better which is why I opened https://github.com/jborean93/omi/issues/26.