Last active
October 20, 2016 02:02
-
-
Save trodemaster/6894a222334e6e812e513e6529f32da2 to your computer and use it in GitHub Desktop.
Some install notes for macOS + .net core + powershell core + PowerCli core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install openssl via macports | |
sudo port install openssl curl | |
# create a dir in the path for library links | |
mkdir -p /usr/local/lib | |
# link tehse librarys ino the path. Not sure this is needed.. | |
ln -s /opt/local/lib/libcrypto.1.0.0.dylib /usr/local/lib/ | |
ln -s /opt/local/lib/libssl.1.0.0.dylib /usr/local/lib/ | |
#Install powershell for OS X | |
#https://github.com/PowerShell/PowerShell/releases/ | |
#Install PowerCLI Core | |
#https://labs.vmware.com/flings/powercli-core | |
mkdir -p ~/.local/share/powershell/Modules | |
unzip ~/Downloads/PowerCLI_Core.zip ~/Downloads/ | |
unzip ~/Downloads/PowerCLI_Core/PowerCLI.Vds.*.zip -d ~/.local/share/powershell/Modules | |
unzip ~/Downloads/PowerCLI_Core/PowerCLI.ViCore.*.zip -d ~/.local/share/powershell/Modules | |
install_name_tool -change /usr/local/opt/curl/lib/libcurl.4.dylib /opt/local/lib/libcurl.4.dylib /usr/local/microsoft/powershell/6.0.0-alpha.*/System.Net.Http.Native.dylib | |
install_name_tool -add_rpath /opt/local/lib /usr/local/microsoft/powershell/6.0.0-alpha.*/System.Security.Cryptography.Native.dylib | |
powershell | |
Get-Module -ListAvailable PowerCLI* | Import-Module | |
connect-viserver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment