IRB doesn't work in command line

I’ve installed Ruby 1.93 in my windows 7 PC using Ruby 1.9.3-p194 one
click installer. I can use “ruby” command to interpret files, but when I
type “irb” it gives me the following error:


C:\Users\Acer>irb
F:/Programs/Ruby193/lib/ruby/site_ruby/1.9.1/rbreadline.rb:2111:in
expand_path': non-absolute home (ArgumentError) from F:/Programs/Ruby193/lib/ruby/site_ruby/1.9.1/rbreadline.rb:2111:in_rl_read_init_file’

        from

F:/Programs/Ruby193/lib/ruby/site_ruby/1.9.1/rbreadline.rb:2094:in
rl_read_init_file' from F:/Programs/Ruby193/lib/ruby/site_ruby/1.9.1/rbreadline.rb:2515:inreadline_initialize
_everything’
from
F:/Programs/Ruby193/lib/ruby/site_ruby/1.9.1/rbreadline.rb:3746:in
rl_initialize' from F:/Programs/Ruby193/lib/ruby/site_ruby/1.9.1/rbreadline.rb:4758:inreadline’
from
F:/Programs/Ruby193/lib/ruby/site_ruby/1.9.1/readline.rb:40:in
readline' from F:/Programs/Ruby193/lib/ruby/1.9.1/irb/input-method.rb:115:ingets’
from F:/Programs/Ruby193/lib/ruby/1.9.1/irb.rb:139:in block (2 levels) in eval_input' from F:/Programs/Ruby193/lib/ruby/1.9.1/irb.rb:273:insignal_status’
from F:/Programs/Ruby193/lib/ruby/1.9.1/irb.rb:138:in block in eval_input' from F:/Programs/Ruby193/lib/ruby/1.9.1/irb/ruby-lex.rb:188:incall’
from
F:/Programs/Ruby193/lib/ruby/1.9.1/irb/ruby-lex.rb:188:in buf_input' from F:/Programs/Ruby193/lib/ruby/1.9.1/irb/ruby-lex.rb:103:ingetc’
from F:/Programs/Ruby193/lib/ruby/1.9.1/irb/slex.rb:205:in
match_io' from F:/Programs/Ruby193/lib/ruby/1.9.1/irb/slex.rb:75:inmatch’
from
F:/Programs/Ruby193/lib/ruby/1.9.1/irb/ruby-lex.rb:286:in token' from F:/Programs/Ruby193/lib/ruby/1.9.1/irb/ruby-lex.rb:262:inlex’
from
F:/Programs/Ruby193/lib/ruby/1.9.1/irb/ruby-lex.rb:233:in block (2 levels) in each_top _level_statement' from F:/Programs/Ruby193/lib/ruby/1.9.1/irb/ruby-lex.rb:229:inloop’
from
F:/Programs/Ruby193/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in block in each_top_level_stat ement' from F:/Programs/Ruby193/lib/ruby/1.9.1/irb/ruby-lex.rb:228:incatch’
from
F:/Programs/Ruby193/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in
each_top_level_statement' from F:/Programs/Ruby193/lib/ruby/1.9.1/irb.rb:155:ineval_input’
from F:/Programs/Ruby193/lib/ruby/1.9.1/irb.rb:70:in block in start' from F:/Programs/Ruby193/lib/ruby/1.9.1/irb.rb:69:incatch’
from F:/Programs/Ruby193/lib/ruby/1.9.1/irb.rb:69:in start' from F:/Programs/Ruby193/bin/irb:12:in


I installed Ruby on “F:/Programs/Ruby193” folder and added
“F:/Programs/Ruby193/bin” in my PATH.
I also tried with Ruby 1.87 but got the same error.

Does it work from the Run command?

On Aug 19, 2012, at 10:14 , “Rafi K.” [email protected] wrote:

I’ve installed Ruby 1.93 in my windows 7 PC using Ruby 1.9.3-p194 one
click installer. I can use “ruby” command to interpret files, but when I
type “irb” it gives me the following error:

C:\Users\Acer>irb
F:/Programs/Ruby193/lib/ruby/site_ruby/1.9.1/rbreadline.rb:2111:in
`expand_path’: non-absolute home
(ArgumentError)

That says pretty much everything you need to know. Your $HOME
environment variable is probably not set or set incorrectly.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs