Skip to content

FindRuby.cmake could not find Ruby library on Windows

The FindRuby module could not find ruby library on Windows

CMake Error at C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find Ruby (missing: Ruby_LIBRARY) (found suitable version
  "2.7.1", minimum required is "1.8.0")
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.18/Modules/FindRuby.cmake:467 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:11 (find_package)

I look at the code and CMake seems to be looking for x64-msvcrt-ruby-271 library file, but the file that exists is x64-msvcrt-ruby-270

I'm using CMake 3.18.1 and Ruby 2.7.1

Edited by PillFall
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information