Problems With Console


#1

I just recently got Ruby on Rails and am having some problems with ./
script/console. Whenever, I enter the command, I get this:
Loading development environment.
/usr/lib/ruby/1.8/irb/completion.rb:10:in require': No such file to load -- readline (LoadError) from /usr/lib/ruby/1.8/irb/completion.rb:10 from /usr/lib/ruby/1.8/irb/init.rb:218:inrequire’
from /usr/lib/ruby/1.8/irb/init.rb:218:in load_modules' from /usr/lib/ruby/1.8/irb/init.rb:216:ineach’
from /usr/lib/ruby/1.8/irb/init.rb:216:in load_modules' from /usr/lib/ruby/1.8/irb/init.rb:21:insetup’
from /usr/lib/ruby/1.8/irb.rb:54:in `start’
from /usr/bin/irb:13

The file completion.rb is definitely in the correct place and the
permissions are set correctly. I have it installed on Mac OS X 10.4
Server. Any help would be appreciated.

Thanks!
Floyd


#2

Floyd Resler wrote:

    from /usr/lib/ruby/1.8/irb/init.rb:21:in `setup'
    from /usr/lib/ruby/1.8/irb.rb:54:in `start'
    from /usr/bin/irb:13

The file completion.rb is definitely in the correct place and the
permissions are set correctly. I have it installed on Mac OS X 10.4
Server. Any help would be appreciated.

You need to install a version of ruby that includes readline support.

Ray