Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stty invoked wen executing "irb --simple-prompt --rrbconfig" #19

Closed
sforsandyman opened this issue Oct 18, 2010 · 5 comments
Closed

stty invoked wen executing "irb --simple-prompt --rrbconfig" #19

sforsandyman opened this issue Oct 18, 2010 · 5 comments

Comments

@sforsandyman
Copy link


C:\Documents and Settings\Scarlet Pimpernel>irb --simple-prompt -rrbconfig
E:/Ruby192/lib/ruby/site_ruby/1.9.1/rbreadline.rb:2043:in ``': No such file or d
irectory - stty -a (Errno::ENOENT)
        from E:/Ruby192/lib/ruby/site_ruby/1.9.1/rbreadline.rb:2043:in `rl_tty_s
et_default_bindings'
        from E:/Ruby192/lib/ruby/site_ruby/1.9.1/rbreadline.rb:2056:in `readline
_default_bindings'
        from E:/Ruby192/lib/ruby/site_ruby/1.9.1/rbreadline.rb:2494:in `readline
_initialize_everything'
        from E:/Ruby192/lib/ruby/site_ruby/1.9.1/rbreadline.rb:3726:in `rl_initi
alize'
        from E:/Ruby192/lib/ruby/site_ruby/1.9.1/rbreadline.rb:4720:in `readline
'
        from E:/Ruby192/lib/ruby/site_ruby/1.9.1/readline.rb:40:in `readline'
        from E:/Ruby192/lib/ruby/1.9.1/irb/input-method.rb:115:in `gets'
        from E:/Ruby192/lib/ruby/1.9.1/irb.rb:139:in `block (2 levels) in eval_i
nput'
        from E:/Ruby192/lib/ruby/1.9.1/irb.rb:273:in `signal_status'
        from E:/Ruby192/lib/ruby/1.9.1/irb.rb:138:in `block in eval_input'
        from E:/Ruby192/lib/ruby/1.9.1/irb/ruby-lex.rb:188:in `call'
        from E:/Ruby192/lib/ruby/1.9.1/irb/ruby-lex.rb:188:in `buf_input'
        from E:/Ruby192/lib/ruby/1.9.1/irb/ruby-lex.rb:103:in `getc'
        from E:/Ruby192/lib/ruby/1.9.1/irb/slex.rb:205:in `match_io'
        from E:/Ruby192/lib/ruby/1.9.1/irb/slex.rb:75:in `match'
        from E:/Ruby192/lib/ruby/1.9.1/irb/ruby-lex.rb:286:in `token'
        from E:/Ruby192/lib/ruby/1.9.1/irb/ruby-lex.rb:262:in `lex'
        from E:/Ruby192/lib/ruby/1.9.1/irb/ruby-lex.rb:233:in `block (2 levels)
in each_top_level_statement'
        from E:/Ruby192/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `loop'
        from E:/Ruby192/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `block in each_top
_level_statement'
        from E:/Ruby192/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `catch'
        from E:/Ruby192/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `each_top_level_st
atement'
        from E:/Ruby192/lib/ruby/1.9.1/irb.rb:155:in `eval_input'
        from E:/Ruby192/lib/ruby/1.9.1/irb.rb:70:in `block in start'
        from E:/Ruby192/lib/ruby/1.9.1/irb.rb:69:in `catch'
        from E:/Ruby192/lib/ruby/1.9.1/irb.rb:69:in `start'
        from E:/Ruby192/bin/irb:12:in `'

This is the complete error message and here are some additional info:

C:\Documents and Settings\Scarlet Pimpernel>ruby -v
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

C:\Documents and Settings\Scarlet Pimpernel>set TERM
TERM=nutc
TERMCAP=E:\RATIONAL\RATION1\NUTCROOT\etc\termcap
TERMINFO=E:\RATIONAL\RATION
1\NUTCROOT\usr\lib\terminfo

@luislavena
Copy link
Collaborator

Can you test unsetting TERM? set TERM=

I'm not familiar with nutc as terminal emulator, but I asked you in the group to try in a normal command prompt... that was the result?

@phasis68
Copy link
Contributor

This is already fixed.
It happened due to the wrong packaging of 1.9.2 installer.

@sforsandyman
Copy link
Author

can anyone tell me what am i exactly supposed to do now? I'm confused, should i uninstall my ruby installation and opt for a newer one, or is there a better way?

Thanks,
Sandeep.

@luislavena
Copy link
Collaborator

Sandeep,

  1. go to the root of the project: http://github.com/luislavena/rb-readline/

  2. Click download.

  3. Download the .zip package from "master" branch

  4. extract it.

  5. from the command prompt you need to CD into that directory

  6. run ruby setup.rb

That should update your installation of rb-readline and fix the problem you're having.

There will be another release of rb-readline pretty soon.

Closing this out.

@sforsandyman
Copy link
Author

Luis,

I really appreciate the way you patiently
answered my simple questions. Hope I didn't trouble you
much, and sorry if it's the other way round. :)

By the way, "nutc" is the emulator for my CASE tool, Rational Rose.

Thanks,
Sandeep

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants