Install MSYS2 on Windows
MSYS is a build tool for Windows. In order to install vSphere Automation SDK on my Windows 10 machine, I got the following message -
Fetching: json-2.1.0.gem (100%)
MSYS2 could not be found. Please run ‘ridk install’
or download and install MSYS2 manually from https://msys2.github.io/
I am using ruby 2.4 and running the above command gave me the options like below -
PS C:\Tools\ruby24\bin> ridk install
1 — MSYS2 base installation
2 — MSYS2 repository update
3 — MSYS2 and MINGW development toolchain
Which components shall be installed? [1,2,3] 1
When I selected option 1, it failed with access denied error.
MSYS2 seems to be unavaiable
Download http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20161025.exe
to C:\Users\ripon\AppData\Local\Temp/msys2-x86_64–20161025.exe
Installation failed: 403 Forbidden
I have downloaded the .exe file from the above location and installed it, but my build failed with error -
gem install vsphere-automation-sdk-6.6.1.gem
Temporarily enhancing PATH for MSYS/MINGW…
Building native extensions. This could take a while…
ERROR: Error installing vsphere-automation-sdk-6.6.1.gem:
ERROR: Failed to build gem native extension.