I want to install Rails on Windows using the procedure described in the official Ruby guide.
When I enter
gem install rails
I get the error message:
Permission denied @ rb_sysopen - /var/lib/gems/3.2.0/gems/websocket-driver-0.8.0/CHANGELOG.md
Executing the command as root user does not help.
ERROR: Failed to build gem native extension.
Does anyone have suggestions for resolving this issue?