Old Ruby build tools and packages
OpenSSL 1.1.1w update
The MSYS2 system has upgraded their OpenSSL packages to 3.x, so OpenSSL 1.1.1 packages are archived, and haven't been updated since 1.1.1t. The packages included here were built locally for use with older Windows Rubies.
-
Download correct packages, Ruby 3.1 should use the mingw-w64-ucrt-x86_64-openssl-1.1.1.w package, Rubies 2.5 thru 3.0 should use the mingw-w64-x86_64-openssl-1.1.1.w package
-
Update your MSYS2 install with
ridk exec pacman -Syuu
Follow the prompts, it may need to be done more than once
-
Add signing key
ridk exec bash.exe -c "pacman-key --init" ridk exec bash.exe -c "pacman-key --recv-keys D688DA4A77D8FA18" ridk exec bash.exe -c "pacman-key --lsign-key D688DA4A77D8FA18"
-
Install package
ridk exec pacman -U <folder>/<pkg filename>
-
Replace your Ruby OpenSSL dlls (optional)
Find the location of your MSYS2 install via
ridk version
, see the path specified in msys2: -> path:Depending on the Ruby version, the MSYS2 OpenSSL dlls (libcrypto-1_1-x64.dll, libssl-1_1-x64.dll) will be located in either of the subdirectories of the above path
ucrt64/bin
mingw64/binYou can copy these dlls to the Ruby bin/ruby_builtin_dlls folder. I would suggest renaming the old files, not deleting them.
Once that is done, ruby -ropenssl -e "puts OpenSSL::OPENSSL_LIBRARY_VERSION"
should return
OpenSSL 1.1.1w 11 Sep 2023