i upgraded my windows to windows 11 and have ruby on rails projects in the wsl (ubuntu 18.04 ).
i use rvm to manage my ruby versions
after running
rvm install 3.0.0
during install the console displays : verify binary
and i get windows blue screen with STOP: MEMORY_MANAGEMENT
before the computer restarts
➜ ~ rvm -v
rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
➜ ~ rvm list
ruby-2.6.0 [ x86_64 ]
ruby-2.6.5 [ x86_64 ]
=* ruby-2.7.0 [ x86_64 ]
ruby-3.0.0 [ x86_64 ]
# => - current
# =* - current && default
# * - default
➜ ~ rvm use 3.0.0
Using /home/trevorius/.rvm/gems/ruby-3.0.0
ruby: error while loading shared libraries: /home/trevorius/.rvm/rubies/ruby-3.0.0/bin/../lib/libruby.so.3.0: invalid ELF header
Processor : Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz 2.59 GHz
Ram: 16.0 GB (15.8 GB usable)
System type : 64-bit operating system, x64-based processor
OS: Windows 11 Home
version: 21H2
wsl: Ubunto 18.04
PS C:\Users\trevo> wsl -l -v
NAME STATE VERSION
* Ubuntu-18.04 Running 1
i ended up upgrading wsl to wsl 2
using wsl --set-version Ubuntu-18.04 2
from a powershell terminal
i had to delete the corrupted ruby files for this to work but the first run gave me the location of the files. and a couple of rm -rf <corrupted folders>
allowed the process to complete.
Be warned this is a relatively long process took me approx 15mins per run.
after the process i was able to run the install of ruby 3.0.0 with no problem.
thank you NotTheDr01ds for putting me on track with a solution