From: Heesob Park Date: 2010-10-19T10:09:03+09:00 Subject: Re: unable to preload "rbconfig" in my irb session Hi, 2010/10/19 Luis Lavena : > On Oct 18, 1:45 pm, "Sandeep K." 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. > 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 Heesob Regards, Park Heesob