SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2005
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    script/console load error

    I'm using the new SItepoint ruby book. On page 100, it says to start the script/console. When I try to do so, I get this error:

    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:in `require'
    from /usr/lib/ruby/1.8/irb/init.rb:218:in `load_modules'
    from /usr/lib/ruby/1.8/irb/init.rb:216:in `each'
    from /usr/lib/ruby/1.8/irb/init.rb:216:in `load_modules'
    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

    Any ideas? Thanks.

  2. #2
    SitePoint Guru silver trophy Luke Redpath's Avatar
    Join Date
    Mar 2003
    Location
    London
    Posts
    794
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're missing the readline library - should be as simple as running:

    gem install readline

    From a command prompt.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •