Unable to run irb in Power Shell to learn Ruby, please help

Skip to first unread message

Justin McMurtrey

Oct 2, 2020, 3:36:52 AM10/2/20
to RubyInstaller
I am on Windows 10 and just downloaded  Ruby+Devkit 2.6.6-1 (x64)  but after I downloaded and installed I am unable to run IRB interactively in powershell. It worked a few months ago, I have no clue what changed and what's causing this, please help. Thanks.

PS C:\Users\ZZM9LC\Documents\Ruby> ruby -v
ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]
PS C:\Users\ZZM9LC\Documents\Ruby> irb
Traceback (most recent call last):
        4: from C:/Ruby26-x64/bin/irb.cmd:31:in `<main>'
        3: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        2: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        1: from C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/irbrc_predefiner.rb:6:in `<top (required)>'
C:/Ruby26-x64/lib/ruby/site_ruby/2.6.0/irbrc_predefiner.rb:6:in `write': No such file or directory @ rb_sysopen - H://.irbrc (Errno::ENOENT)
PS C:\Users\ZZM9LC\Documents\Ruby>


Lars Kanis

Oct 4, 2020, 12:08:19 PM10/4/20
to RubyInstaller
Sorry you're having problems with RubyInstaller! The error message says that it failed to write a file on your H drive. Apparently that drive seems to have disappeared.

You should check your system and user environment variables in the Windows system settings. There must be a reference to the H drive in some variable like "HOME" or "HOMEDRIVE". It probably has to be replaced with a drive letter that is available.

Regards, Lars

You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyinstalle...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyinstaller/161592a5-c843-44a5-b647-007ae3b3d26fn%40googlegroups.com.
Reply all
Reply to author
0 new messages