I''ve done my development using WEBrick, and now I want to put my application on a server that uses Apache. (not with fcgi) I think I''ve done everything like I''m supposed to, but when surfing to my site I get: Application error Rails application failed to start properly" In /var/log/apache/error_log, I get this error: /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- initializer (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' from /home/lddekeyz/public_html/tonefinder/../../Documents/development/tonefinder/config/boot.rb:14 from /home/lddekeyz/public_html/tonefinder/../../Documents/development/tonefinder/config/environment.rb:10 from /home/lddekeyz/public_html/tonefinder/dispatch.cgi:3 [Sun Jan 22 18:26:29 2006] [error] [client 127.0.0.1] Premature end of script headers: /home/lddekeyz/public_html/tonefinder/dispatch.cgi -- Posted via http://www.ruby-forum.com/.
Am Sonntag, den 22.01.2006, 18:36 +0100 schrieb Lieven De Keyzer:> I''ve done my development using WEBrick, and now I want to put my > application on a server that uses Apache. (not with fcgi) > I think I''ve done everything like I''m supposed to, but when surfing to > my site I get: > > Application error > Rails application failed to start properly" > > In /var/log/apache/error_log, I get this error: > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require__'': no such file to load -- initializer (LoadError) > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require'' > from > /home/lddekeyz/public_html/tonefinder/../../Documents/development/tonefinder/config/boot.rb:14 > from > /home/lddekeyz/public_html/tonefinder/../../Documents/development/tonefinder/config/environment.rb:10 > from /home/lddekeyz/public_html/tonefinder/dispatch.cgi:3 > [Sun Jan 22 18:26:29 2006] [error] [client 127.0.0.1] Premature end of > script headers: /home/lddekeyz/public_html/tonefinder/dispatch.cgi >One simple question: Do you have the Rails packages installed? gem install rails --include-dependencies -- Norman Timmler http://blog.inlet-media.de
Norman Timmler wrote:> Am Sonntag, den 22.01.2006, 18:36 +0100 schrieb Lieven De Keyzer: >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in >> script headers: /home/lddekeyz/public_html/tonefinder/dispatch.cgi >> > > One simple question: Do you have the Rails packages installed? > > gem install rails --include-dependencies > > > -- > Norman Timmler > > http://blog.inlet-media.deYes, I have installed Rails 1.0 this way. It seems it goes wrong in config/boot.rb. This is a code snippet from that file: if File.directory?("#{RAILS_ROOT}/vendor/rails") require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" else require ''rubygems'' require ''initializer'' end rubygems gets loaded, initializer can not be found. If I change that line to as follows: require ''rubygems'' require ''/usr/local/lib/ruby/gems/gems/rails-1.0.0/lib/initializer'' then initializer is loaded, but I get `require__'': no such file to load -- active_record (LoadError) -- Posted via http://www.ruby-forum.com/.