Rails Console (v1.2) won't load

Hi - just upgraded to rails 1.2 and the console script is failing to
load under ruby 1.8.5-p2. Any one seen this before? (Every thing
else is running fine; hmmm...) Thanks for any help you can lend.

Regards,

Ken

582-> ruby script/console
Loading development environment.
/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

Neglected to mention that I'm running on Ubuntu linux w/a locally
built Ruby.

Ken

···

On Feb 22, 1:53 pm, coachhil...@gmail.com wrote:

Hi - just upgraded to rails 1.2 and the console script is failing to
load under ruby 1.8.5-p2. Any one seen this before? (Every thing
else is running fine; hmmm...) Thanks for any help you can lend.

Regards,

Ken

582-> ruby script/console
Loading development environment.
/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

coachhilton@gmail.com wrote:
>> Hi - just upgraded to rails 1.2 and the console script is failing to
>> load under ruby 1.8.5-p2. Any one seen this before?

>> 582-> ruby script/console
>> Loading development environment.
>> /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such
>> file to load -- readline (LoadError)

seems like you've built ruby without gnu readline
i don't have ubuntu but google suggests ([1,2])
it does not have the readline library
or development headers installed by default.

Max

[1] http://ruphus.com/blog/2007/01/27/installing-rails-with-readline-and-console-support-on-ubuntu-lts/
[2] Green Programming: Ruby w/readline on Ubuntu

···

On Feb 22, 1:53 pm, coachhil...@gmail.com wrote:

Thanks VERY much. I'd never have guess that!

Cheers,

Ken

···

On Feb 23, 6:15 am, Max Deineko <m...@bitchesgroove.at> wrote:

coachhil...@gmail.com wrote:

> On Feb 22, 1:53 pm, coachhil...@gmail.com wrote:
>> Hi - just upgraded to rails 1.2 and the console script is failing to
>> load under ruby 1.8.5-p2. Any one seen this before?

>> 582-> ruby script/console
>> Loading development environment.
>> /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such
>> file to load -- readline (LoadError)

seems like you've built ruby without gnu readline
i don't have ubuntu but google suggests ([1,2])
it does not have the readline library
or development headers installed by default.

Max

[1]http://ruphus.com/blog/2007/01/27/installing-rails-with-readline-and-\.\.\.
[2]http://greenprogrammer.blogspot.com/2006/05/ruby-wreadline-on-ubuntu\.\.\.\.