From: Stewart Date: 2009-08-12T01:15:19+09:00 Subject: Re: Readline not working with Ruby On Aug 11, 5:09 pm, Robert Dober wrote: > On Tue, Aug 11, 2009 at 6:05 PM, Pascal J. > > > > Bourguignon wrote: > > Marvin Gülker writes: > > >> Stewart wrote: > >>> Hey I compiled ruby with readline support. However when i go to IRB i > >>> just get jibbrish when i press the up arrow on my keyboard.  Any > >>> suggestions? > > >> No suggestions, but I have this problem too: > > >> irb > >> irb(main):001:0> puts "Test" > >> Test > >> => nil > >> irb(main):002:0> ^[[A > > >> ruby -v: ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux] > > > type in the shell: > > >   echo $TERM > > > and compare with the actual terminal (or terminal emulator) that you are using. > > > -- > > __Pascal Bourguignon__ > > I strongly suggest to check if your readline extension really compiled > before explorating the unlikely path of terminal issues > type > > ruby -rreadline -e 'p 42" > > and only if that works explore Pascal's idea. > HTH > Robert > > -- > module Kernel >   alias_method :λ, :lambda > end /usr/local/src/ruby-1.8.7-p72/ext/readline $ ruby -rreadline -e 'p 42' /usr/local/ruby_test/lib/ruby/site_ruby/1.8/i686-darwin9.6.0/ readline.bundle: dlopen(/usr/local/ruby_test/lib/ruby/site_ruby/1.8/ i686-darwin9.6.0/readline.bundle, 9): Symbol not found: _rl_filename_completion_function (LoadError) Referenced from: /usr/local/ruby_test/lib/ruby/site_ruby/1.8/i686- darwin9.6.0/readline.bundle Expected in: flat namespace - /usr/local/ruby_test/lib/ruby/site_ruby/1.8/i686-darwin9.6.0/ readline.bundle