Can someone please explain why I am see the following: <snip> rails/uploadimage> 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 `load_modules'' 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 rails/uploadimage> </snip> Thanks, Doug -- Posted via http://www.ruby-forum.com/.
Douglass Turner wrote:> Can someone please explain why I am see the following: > > <snip> > rails/uploadimage> 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 `load_modules'' > 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 > > > > rails/uploadimage> > </snip> > > Thanks, > Doug > >Are you on a mac? It looks like you are missing readline. Check out http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger Matthew Margolis blog.mattmargolis.net
Matthew Margolis wrote:> Douglass Turner wrote: >> from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'' >> Doug >> >> > Are you on a mac? It looks like you are missing readline. Check out > http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger > > Matthew Margolis > blog.mattmargolis.netActually I''m on suse linux 10. I went ahead and installed the readline library but I can''t get ruby to recognize it. I rebuilt ruby, reinstalled gems, etc. What am I missing? -Doug -- Posted via http://www.ruby-forum.com/.
On 17/06/06, Douglass Turner <douglass.turner@gmail.com> wrote:> Actually I''m on suse linux 10. I went ahead and installed the readline > library but I can''t get ruby to recognize it. I rebuilt ruby, > reinstalled gems, etc. What am I missing?Make sure you have the readline headers installed - for some odd reason most Linuxes keep them in a separate package (''readline-devel'' or something usually). Then go into the ext/readline subdirectory in the ruby source tree and make it manually. -- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/
Dick Davies wrote:> On 17/06/06, Douglass Turner <douglass.turner@gmail.com> wrote: > >> Actually I''m on suse linux 10. I went ahead and installed the readline >> library but I can''t get ruby to recognize it. I rebuilt ruby, >> reinstalled gems, etc. What am I missing? > > Make sure you have the readline headers installed - for some odd reason > most Linuxes keep them in a separate package (''readline-devel'' or > something > usually). Then go into the ext/readline subdirectory in the ruby source > tree > and make it manually.I''ve completely remade everything already. I called configure so: ./configure --with-readline-dir=/usr/local Ruby is still refusing to believe I have: /usr/local/lib/libreadline.so /usr/local/include/readline/readline.h By the way I just realized I already had: /usr/lib/libreadline.so /usr/include/readline/readline.h What more need I do? -Doug -- Posted via http://www.ruby-forum.com/.