
Hi, I'm trying to build Ruby 3.2.2 source code on Windows 10 using Visual Studio 2019. I downloaded the source code using link https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz from https://www.ruby-lang.org/en/downloads/. I'm following the steps mentioned in this (https://docs.ruby-lang.org/en/master/windows_md.html). Following is the configuration that I'm executing from the Visual Studio 2019 Native x64 command prompt. d:\...\ruby3.2.2> win32\configure --prefix=/usr/local --target=x64-mswin64 --disable-install-doc --with-opt-dir=C:\gitviews\opensource\vcpkg\installed\x64-windows\ I get the following error. How do I make sure these packages are of the correct version and compatible with Ruby 3.2.2? ----------------------------------------------------------------------------------- ... compiling rubyw.rc linking rubyw.exe *** Following extensions are not compiled: fiddle: " Could not be configured. It will not be installed." " D:/Ruby/ruby-3.2.2.tar/ruby-3.2.2/ext/fiddle/extconf.rb:73: missing libffi. Please install libffi or use --with-libffi-source-dir with libffi source location." " Check ext/fiddle/mkmf.log for more details." openssl: " Could not be configured. It will not be installed." " D:/Ruby/ruby-3.2.2.tar/ruby-3.2.2/ext/openssl/extconf.rb:101: OpenSSL library could not be found. You might want to use --with-openssl-dir=<dir> option to specify the prefix where OpenSSL is installed." " Check ext/openssl/mkmf.log for more details." psych: " Could not be configured. It will not be installed." " Check ext/psych/mkmf.log for more details." readline: " Could not be configured. It will not be installed." " D:/Ruby/ruby-3.2.2.tar/ruby-3.2.2/ext/readline/extconf.rb:62: Neither readline nor libedit was found" " Check ext/readline/mkmf.log for more details." zlib: " Could not be configured. It will not be installed." " Check ext/zlib/mkmf.log for more details." *** Fix the problems, then remove these directories and try again if you want. ... ----------------------------------------------------------------------------------- I have already installed the required packages using the following command under C:\gitviews\opensource\vcpkg\ d:\...\ruby3.2.2>vcpkg --triplet x64-windows install openssl libffi libyaml zlib readline ----------------------------------------------------------------------------------- ... openssl:x64-windows -> 3.1.4#1 zlib:x64-windows -> 1.3 The following packages will be built and installed: readline:x64-windows -> 0#5 * readline-win32:x64-windows -> 5.0#8 Additional packages (*) will be modified to complete this operation. Detecting compiler hash for triplet x64-windows... Restored 0 package(s) from C:\Users\310220077\AppData\Local\vcpkg\archives in 808 us. Use --debug to see more details. libffi:x64-windows is already installed libyaml:x64-windows is already installed openssl:x64-windows is already installed zlib:x64-windows is already installed Installing 1/2 readline-win32:x64-windows... ----------------------------------------------------------------------------------- Regards, Chandan