Forum: Ruby on Rails Rails and Apache: Error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F66cc63471b71843dba49db8e2b3771d?d=identicon&s=25 Lieven De keyzer (lieven)
on 2006-01-22 18:36
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
Bf66e10c8fc4abefebde0425e7f6f15a?d=identicon&s=25 Norman Timmler (Guest)
on 2006-01-23 08:51
(Received via mailing list)
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.de
F66cc63471b71843dba49db8e2b3771d?d=identicon&s=25 Lieven De keyzer (lieven)
on 2006-01-23 17:19
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.de

Yes, 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)
This topic is locked and can not be replied to.