My PC is Windows 10 64-bit professional. I installed IRB 3.0.0-1 x64 without development software. When I clicked interactive ruby, the shell was displayed. In a couple of seconds, it disappeared.
Then I tried to open CMD shell and typed IRB. IRB won’t run and following messages are displayed,
write': No such file or directory @ rb_sysopen - P://.irbrc (Errno::ENOENT) from C:/Ruby30-x64/lib/ruby/site_ruby/3.0.0/irbrc_predefiner.rb:6:in <top (required)>’
require' from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in require’
from C:/Ruby30-x64/bin/irb.cmd:31:in `’
I installed the same software on another PC with Windows 10, and IRB runs fine.
Can someone help me to resolve this problem?