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:inrequire’
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:ineach’
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:insetup’
from /usr/local/lib/ruby/1.8/irb.rb:54:in `start’
from /usr/local/bin/irb:13

On Feb 22, 1:53 pm, [email protected] wrote:

/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:inrequire’
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:ineach’
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:insetup’
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

[email protected] wrote:

On Feb 22, 1:53 pm, [email protected] 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]

On Feb 23, 6:15 am, Max D. [email protected] wrote:

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

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

Cheers,

Ken