# Unable to preload "rbconfig" in my irb session

**URL:** <https://www.ruby-forum.com/t/unable-to-preload-rbconfig-in-my-irb-session/197613>\
**Category:** Ruby\
**Created:** [October 17, 2010, 10:58am UTC](https://www.ruby-forum.com/t/unable-to-preload-rbconfig-in-my-irb-session/197613 "2010-10-17T10:58:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [October 17, 2010, 10:58am UTC](https://www.ruby-forum.com/t/unable-to-preload-rbconfig-in-my-irb-session/197613/1 "2010-10-17T10:58:14Z")

</div>

I’m using Ruby 1.9.2 with Windows XP as host, I ran the command

irb --simple-prompt -rrbconfig

from the command line and got an error stating:  
“E:/Ruby192/lib/ruby/site\_ruby/1.9.1/rbreadline.rb:2043:in ``’: No such  
file or directory - stty -a (Errno::ENOENT)”

I’ve attached the complete error statement along with the post, please  
help.

Thanks,  
Sandeep

---

<div class="post-metadata">

**Author:** ![sandymca94](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5a626/32.png) [@sandymca94](https://www.ruby-forum.com/u/sandymca94)\
**Post date:** [October 17, 2010, 11:40pm UTC](https://www.ruby-forum.com/t/unable-to-preload-rbconfig-in-my-irb-session/197613/2 "2010-10-17T23:40:53Z")

</div>

On Oct 17, 5:58am, “Sandeep K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 

Have you installed cygwin or cygwin installation bundled with E text  
editor?

Are you using a normal command prompt?

What is the output of “SET TERM” ?

This has nothing to do with rbconfig but instead if the rb-readline  
(pure-ruby readline) component that is bundled with Ruby 1.9.2-p0  
provided by RubyInstaller.

The only way for stty be invoked is an incorrect environment variable  
or bash/sh installation interfering with rb-readline.

I’m not able to recreate this:

C:\Users\Luis\>ruby -v  
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

C:\Users\Luis\>set TERM  
Environment variable TERM not defined

C:\Users\Luis\>irb --simple-prompt -rrbconfig

> >

Please provide that information and also open a bug report in rb-  
readline issue tracker:

> **[Issues · ConnorAtherton/rb-readline](https://github.com/ConnorAtherton/rb-readline/issues)**
>
> Pure-Ruby Readline Implementation. Contribute to ConnorAtherton/rb-readline development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![sandymca94](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5a626/32.png) [@sandymca94](https://www.ruby-forum.com/u/sandymca94)\
**Post date:** [October 18, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/unable-to-preload-rbconfig-in-my-irb-session/197613/3 "2010-10-18T18:45:22Z")

</div>

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\RATION~1\NUTCROOT\etc\termcap  
TERMINFO=E:\RATIONAL\RATION~1\NUTCROOT\usr\lib\terminfo

I’m using a normal command prompt and as I’m yet a beginner I do not  
know what you mean by: “The only way for stty be invoked is an incorrect  
environment variable or bash/sh installation interfering with  
rb-readline.”

Thanks,  
Sandeep.

---

<div class="post-metadata">

**Author:** ![sandymca94](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5a626/32.png) [@sandymca94](https://www.ruby-forum.com/u/sandymca94)\
**Post date:** [October 18, 2010, 10:14pm UTC](https://www.ruby-forum.com/t/unable-to-preload-rbconfig-in-my-irb-session/197613/4 "2010-10-18T22:14:40Z")

</div>

On Oct 18, 1:45pm, “Sandeep K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 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\RATION~1\NUTCROOT\etc\termcap  
> TERMINFO=E:\RATIONAL\RATION~1\NUTCROOT\usr\lib\terminfo

Can you unset TERM?

I searched a bit looking for what could be considered a “nutc”  
terminal option and nothing was found. Also dunno what could have set  
that for you.

As I indicated in the ticket, please unset it:

SET TERM=

And try again.

> I’m using a normal command prompt and as I’m yet a beginner I do not  
> know what you mean by: “The only way for stty be invoked is an incorrect  
> environment variable or bash/sh installation interfering with  
> rb-readline.”

stty is a utility in \*nix systems used to determine terminal  
capabilities. Due the weird terminal setting you have, it is trying to  
use stty which is not found.

I mentioned that a cygwin installation or something is interfering in  
your system, which with the above that you provided proven correct.

---

<div class="post-metadata">

**Author:** ![sandymca94](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5a626/32.png) [@sandymca94](https://www.ruby-forum.com/u/sandymca94)\
**Post date:** [October 19, 2010, 3:11pm UTC](https://www.ruby-forum.com/t/unable-to-preload-rbconfig-in-my-irb-session/197613/5 "2010-10-19T15:11:10Z")

</div>

On Oct 18, 10:09pm, Heesob P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > On Oct 18, 1:45pm, “Sandeep K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
> > I searched a bit looking for what could be considered a “nutc”
> > 
> > > know what you mean by: "The only way for stty be invoked is an incorrect  
> > > It seems that the rbreadline.rb distributed with rubyinstaller 1.9.2  
> > > is not a bug fixed version.

Park, do you consider current rb-readline is candidate for a release?

That way I can provide packages and installation instructions to  
users.

Thank you

---

<div class="post-metadata">

**Author:** ![sandymca94](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5a626/32.png) [@sandymca94](https://www.ruby-forum.com/u/sandymca94)\
**Post date:** [October 19, 2010, 3:17pm UTC](https://www.ruby-forum.com/t/unable-to-preload-rbconfig-in-my-irb-session/197613/6 "2010-10-19T15:17:17Z")

</div>

i have unset the TERM.

Now, when i execute the “set TERM” command, i get:

C:\Documents and Settings\Scarlet Pimpernel\>set TERM  
Environment variable TERM not defined

Please provide me with the correct environment variable settings.

Thanks,  
Sandeep.

---

<div class="post-metadata">

**Author:** ![sandymca94](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5a626/32.png) [@sandymca94](https://www.ruby-forum.com/u/sandymca94)\
**Post date:** [October 19, 2010, 3:23pm UTC](https://www.ruby-forum.com/t/unable-to-preload-rbconfig-in-my-irb-session/197613/7 "2010-10-19T15:23:13Z")

</div>

Hi,

2010/10/19 Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> On Oct 18, 10:09 pm, Heesob P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hi,
> > 
> > 2010/10/19 Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> > > On Oct 18, 1:45 pm, “Sandeep K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> > > 
> > > > C:\Documents and Settings\Scarlet Pimpernel\>ruby -v  
> > > > ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

> > It seems that the rbreadline.rb distributed with rubyinstaller 1.9.2  
> > is not a bug fixed version.
> 
> Park, do you consider current rb-readline is candidate for a release?

Yes, at least, the current version is better than the installer  
included version.

> That way I can provide packages and installation instructions to  
> users.

Regards,  
Park H.

---

<div class="post-metadata">

**Author:** ![sandymca94](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5a626/32.png) [@sandymca94](https://www.ruby-forum.com/u/sandymca94)\
**Post date:** [October 19, 2010, 3:42pm UTC](https://www.ruby-forum.com/t/unable-to-preload-rbconfig-in-my-irb-session/197613/8 "2010-10-19T15:42:57Z")

</div>

does that mean, I should uninstall my current version of the ruby and  
opt for an older one or is there a better way out?

Thanks,  
Sandeep

---

<div class="post-metadata">

**Author:** ![sandymca94](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5a626/32.png) [@sandymca94](https://www.ruby-forum.com/u/sandymca94)\
**Post date:** [October 19, 2010, 6:33pm UTC](https://www.ruby-forum.com/t/unable-to-preload-rbconfig-in-my-irb-session/197613/9 "2010-10-19T18:33:10Z")

</div>

On Oct 19, 10:43am, “Sandeep K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> does that mean, I should uninstall my current version of the ruby and  
> opt for an older one or is there a better way out?

Provided instructions for you in the rb-readline ticket:

> <https://github.com/ConnorAtherton/rb-readline/issues/19>
>
> \<pre\>\<code\>
> C:\\Documents and Settings\\Scarlet Pimpernel\>irb --simple-prompt -rrb…config
> 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 \`\<main\>'
> \</code\>\</pre\>
> 
> 
> 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\\RATION~1\\NUTCROOT\\etc\\termcap
> TERMINFO=E:\\RATIONAL\\RATION~1\\NUTCROOT\\usr\\lib\\terminfo

Will perform a release and instructions soon.

---

<div class="post-metadata">

**Author:** ![sandymca94](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5a626/32.png) [@sandymca94](https://www.ruby-forum.com/u/sandymca94)\
**Post date:** [October 19, 2010, 3:09am UTC](https://www.ruby-forum.com/t/unable-to-preload-rbconfig-in-my-irb-session/197613/10 "2010-10-19T03:09:33Z")

</div>

Hi,

2010/10/19 Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Can you unset TERM?
> 
> I mentioned that a cygwin installation or something is interfering in  
> your system, which with the above that you provided proven correct.

It seems that the rbreadline.rb distributed with rubyinstaller 1.9.2  
is not a bug fixed version.

rubyinstaller 1.9.2 version:

def no\_terminal?  
term = ENV[“TERM”]  
term.nil? || (term == ‘dumb’) || (term == ‘cygwin’ &&  
RUBY\_PLATFORM =~ /mswin|mingw/)  
end

the latest github version:

def no\_terminal?  
term = ENV[“TERM”]  
term.nil? || (term == ‘dumb’) || (RUBY\_PLATFORM =~ /mswin|mingw/)  
end

Regards,  
Park H.

Regards,  
Park H.
