I have installed Rails 2.2.2 on a Debian Lenny VPS and I am getting the following error when trying to script/console. *** Loading development environment (Rails 2.2.2) /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': no such file to load -- readline (LoadError) *** I have seen this error referred to in other posts but I am still unsure how to install ''readline'' on my system. fyi, I have compiled Ruby 1.8.7 from source and installed the Rails 2.2.2 gem. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Mar 18, 10:32 pm, Lee <Lee.Longm...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> I have installed Rails 2.2.2 on a Debian Lenny VPS and I am getting > the following error when trying to script/console. > > *** > > Loading development environment (Rails 2.2.2) > /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': no such > file to load -- readline (LoadError)It''s probably because you didn''t have the development headers for readline. These are probably in a separate debian package (eg libreadline-dev or something like that). Once you''ve got that try building the readline extension again (cd to ruby source /ext/ readline, run ruby extconf.rb then the usual make && make install dance) Fred> > *** > > I have seen this error referred to in other posts but I am still > unsure how to install ''readline'' on my system. > > fyi, I have compiled Ruby 1.8.7 from source and installed the Rails > 2.2.2 gem. > > Thanks.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, you''ll need to install the readline library and you should send a note to the Ruby package maintainer for your platform to add this dependency. Good luck, -Conrad Sent from my iPhone On Mar 18, 2009, at 3:32 PM, Lee <Lee.Longmore-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> > I have installed Rails 2.2.2 on a Debian Lenny VPS and I am getting > the following error when trying to script/console. > > *** > > Loading development environment (Rails 2.2.2) > /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': no such > file to load -- readline (LoadError) > > *** > > I have seen this error referred to in other posts but I am still > unsure how to install ''readline'' on my system. > > fyi, I have compiled Ruby 1.8.7 from source and installed the Rails > 2.2.2 gem. > > Thanks. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, Thanks for your help guys. script/console works! For the benefit of others, I now have the following libaries installed: *libreadline-ruby1.8 libreadline5 readline-common *libreadline5-dev *libncurses5-dev (dependency of libreadline5-dev) Those marked with * were not present when I experienced the error. Having installed the missing libraries using the aptitude package manager, I then did as suggested by Fred: cd /ext/readline (in Ruby source tree) ruby extconf.rb make make install On 19 Mar, 01:46, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, you''ll need to install thereadlinelibrary and you should send a > note to the Ruby package maintainer for your platform to add this > dependency. > > Good luck, > > -Conrad > > Sent from my iPhone > > On Mar 18, 2009, at 3:32 PM, Lee <Lee.Longm...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > I have installed Rails 2.2.2 on a Debian Lenny VPS and I am getting > > the following error when trying to script/console. > > > *** > > > Loading development environment (Rails 2.2.2) > > /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': no such > > file to load --readline(LoadError) > > > *** > > > I have seen this error referred to in other posts but I am still > > unsure how to install ''readline'' on my system. > > > fyi, I have compiled Ruby 1.8.7 from source and installed the Rails > > 2.2.2 gem. > > > Thanks.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---