Forum: Ruby on Rails errors using ruby script/console

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
271ecedbd232e23677ddc1d3956147eb?d=identicon&s=25 hackathology@gmail.com (Guest)
on 2007-05-10 15:36
(Received via mailing list)
HI all, when i try to use the rails console with this command, ruby
script/console, i got the following errors:

/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such
file to load -- readline (LoadError)
        from /usr/local/lib/ruby/1.8/irb/completion.rb:10
        from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require'
        from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
        from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each'
        from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'
        from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup'
        from /usr/local/lib/ruby/1.8/irb.rb:54:in `start'
        from /usr/local/bin/irb:13

googled up and follow all instructions, still hitting this error. Any
ideas?
271ecedbd232e23677ddc1d3956147eb?d=identicon&s=25 hackathology@gmail.com (Guest)
on 2007-05-10 15:50
(Received via mailing list)
ok, solved. This is a little confusing according to some forums. I
will show u guys a step by step.

1. apt-get install libncurses5-dev libreadline5-dev

2. cd /ruby-1.8.6/ext/readline$

3. ruby extconf.rb

4. make

5. sudo make install


On May 10, 9:35 am, "hackathol...@gmail.com" <hackathol...@gmail.com>
This topic is locked and can not be replied to.