Hello - I''m getting an error when running script/console against an app. In different apps I have I get this when trying to execute: 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:218:in `require'' from /usr/local/lib/ruby/1.8/irb/init.rb:218:in `load_modules'' from /usr/local/lib/ruby/1.8/irb/init.rb:216:in `each'' from /usr/local/lib/ruby/1.8/irb/init.rb:216: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 Others I get: Loading development environment. /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'': No such file to load -- readline (MissingSourceFile) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:200:in `require'' from /usr/local/lib/ruby/1.8/irb/completion.rb:10 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:200:in `require'' from /usr/local/lib/ruby/1.8/irb/init.rb:218:in `load_modules'' from /usr/local/lib/ruby/1.8/irb/init.rb:216:in `each'' from /usr/local/lib/ruby/1.8/irb/init.rb:216: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 Ruby 1.8.2/Rails 0.13/Mac OS 10.4.2 All generate, server scripts run fine -- any ideas on what is wrong? Thanks, Nicholas
On 7/21/05, Nicholas Henry <nicholas.henry-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello - > > I''m getting an error when running script/console against an app. In > different apps I have I get this when trying to execute: > > 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:218:in `require'' > from /usr/local/lib/ruby/1.8/irb/init.rb:218:in `load_modules'' > from /usr/local/lib/ruby/1.8/irb/init.rb:216:in `each'' > from /usr/local/lib/ruby/1.8/irb/init.rb:216: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 > > Others I get: > > Loading development environment. > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__'': No such file to load -- readline (MissingSourceFile) > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require'' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:200:in > `require'' > from /usr/local/lib/ruby/1.8/irb/completion.rb:10 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require__'' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require'' > from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:200:in > `require'' > from /usr/local/lib/ruby/1.8/irb/init.rb:218:in `load_modules'' > from /usr/local/lib/ruby/1.8/irb/init.rb:216:in `each'' > from /usr/local/lib/ruby/1.8/irb/init.rb:216: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 > > Ruby 1.8.2/Rails 0.13/Mac OS 10.4.2 > > All generate, server scripts run fine -- any ideas on what is wrong? > > Thanks, > NicholasIf I recall correctly, the the OSX package of Ruby ships without ''readline'' support. Check out: http://wiki.rubyonrails.com/rails/show/ReadlineLibrary -Matt
On 7/21/05, Nicholas Henry <nicholas.henry-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello - > > I''m getting an error when running script/console against an app. In > different apps I have I get this when trying to execute: > > Loading development environment. > /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': No such > file to load -- readline (LoadError)Tiger ships without the readline module. There''s an installer that fixes that: http://wiki.rubyonrails.com/rails/show/HowtoInstallOnOSXTiger -- rick http://techno-weenie.net