I have the development package for Readline called libreadline-dev on my
system. I haven't got the Readline Ruby library (no such file to load --
readline (LoadError)). Should I recompile the Ruby with the Readline
extension included? Will irb work then?
I have the development package for Readline called libreadline-dev on my system. I haven't got the Readline Ruby library (no such file to load -- readline (LoadError)). Should I recompile the Ruby with the Readline extension included? Will irb work then?
Yes, but you don't need to rebuild all of ruby. Just go into ext/readline and run
ruby extconf.rb
make
make install #(as root if needed)
(and you may want to check out the recent thread about .irbrc files for some neat tricks)
···
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
I've just finished installation the Readline extension using your
instructions. The realine.so library was installed in
<install_dir>/ruby-1.9.1/lib/ruby/site_ruby/1.9.1/i686-linux. I can
require it in simple ruby programs or from `ruby -e "require 'readline'
#=> true"`. Also I can use all the standard command line shortcuts in
the irb console as I wanted. But when I require 'readline' in irb itself
for some reason it returns the false value. Why?
I didn't hear anything about the .irbc files thread. Could you give me
the link, please.
false doesn't mean it failed it just means it wasn't loaded (in this case it
wasn't loaded because it was already loaded when you started irb).
···
On Mon, Sep 14, 2009 at 11:24 AM, P. A. <shamaoke@hotmail.com> wrote:
I've just finished installation the Readline extension using your
instructions. The realine.so library was installed in
<install_dir>/ruby-1.9.1/lib/ruby/site_ruby/1.9.1/i686-linux. I can
require it in simple ruby programs or from `ruby -e "require 'readline'
#=> true"`. Also I can use all the standard command line shortcuts in
the irb console as I wanted. But when I require 'readline' in irb itself
for some reason it returns the false value. Why?
I didn't hear anything about the .irbc files thread. Could you give me
the link, please.
--
Posted via http://www.ruby-forum.com/\.
--
"Hey brother Christian with your high and mighty errand, Your actions speak
so loud, I can’t hear a word you’re saying."