I am trying to get RoR (in CGI mode) to work on a (prod) server
(redhat9). Everything is working right on my dev server (FC3 in FCGI
mode)
I get these errors
:
[Wed Jul 27 20:06:22 2005] [error] [client 212.79.70.154] Premature
end of script headers: dispatch.cgi
[Wed Jul 27 20:06:22 2005] [error] [client 212.79.70.154] /usr/lib/
ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'': No
such file to load -- active_support (LoadError)
[Wed Jul 27 20:06:22 2005] [error] [client 212.79.70.154] from /
usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require''
[Wed Jul 27 20:06:22 2005] [error] [client 212.79.70.154] from /
var/www/rails/test_rails/public/../config/environment.rb:38
[Wed Jul 27 20:06:22 2005] [error] [client 212.79.70.154] from /
var/www/rails/test_rails/public/dispatch.cgi:3:in `require''
[Wed Jul 27 20:06:22 2005] [error] [client 212.79.70.154] from /
var/www/rails/test_rails/public/dispatch.cgi:3
Rails does not find activesupport and in fact all other gems.
Rails and all other gems are installed and readable (777):
[root@mactwist public]# gem env
Rubygems Environment:
- VERSION: 0.8.10 (0.8.10)
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
- GEM PATH:
- /usr/local/lib/ruby/gems/1.8
- REMOTE SOURCES:
- http://gems.rubyforge.org
But on my FC3 everything is under /usr/lib/ruby !!!
What do i have to do to get rails working ?
Thx in advance
My gem installation :
[root@mactwist public]# gem dep
Gem actionmailer-1.0.1
Requires
actionpack (= 1.9.1)
Gem actionpack-1.9.1
Requires
activesupport (= 1.1.1)
Gem actionwebservice-0.8.1
Requires
actionpack (= 1.9.1)
activerecord (= 1.11.1)
activesupport (= 1.1.1)
Gem activerecord-1.11.1
Requires
activesupport (= 1.1.1)
Gem activesupport-1.1.1
Gem fcgi-0.8.6.1
Gem mysql-2.6
Gem rails-0.13.1
Requires
rake (>= 0.5.3)
activesupport (= 1.1.1)
activerecord (= 1.11.1)
actionpack (= 1.9.1)
actionmailer (= 1.0.1)
actionwebservice (= 0.8.1)
Gem rake-0.5.4
Gem rubygems-update-0.8.11
Gem sources-0.0.1
I am trying to get RoR (in CGI mode) to work on a (prod) server (redhat9). Everything is working right on my dev server (FC3 in FCGI mode) I get these errors : [Wed Jul 27 20:06:22 2005] [error] [client 212.79.70.154<http://212.79.70.154>] Premature end of script headers: dispatch.cgi [Wed Jul 27 20:06:22 2005] [error] [client 212.79.70.154<http://212.79.70.154>] /usr/lib/ruby/site_ruby/1.8/ru bygems/custom_require.rb:18:in `require__'': No such file to load -- active_support (LoadError) [Wed Jul 27 20:06:22 2005] [error] [client 212.79.70.154<http://212.79.70.154>] from /usr/lib/ruby/site_ruby/1.8/ru bygems/custom_require.rb:18:in `require'' [Wed Jul 27 20:06:22 2005] [error] [client 212.79.70.154<http://212.79.70.154>] from /var/www/rails/test_rails/publ ic/../config/environment.rb:38 [Wed Jul 27 20:06:22 2005] [error] [client 212.79.70.154<http://212.79.70.154>] from /var/www/rails/test_rails/publ ic/dispatch.cgi:3:in `require'' [Wed Jul 27 20:06:22 2005] [error] [client 212.79.70.154<http://212.79.70.154>] from /var/www/rails/test_rails/publ ic/dispatch.cgi:3 Rails does not find activesupport and in fact all other gems. Rails and all other gems are installed and readable (777): [root@mactwist public]# gem env Rubygems Environment: - VERSION: 0.8.10 (0.8.10) - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 - GEM PATH: - /usr/local/lib/ruby/gems/1.8 - REMOTE SOURCES: - http://gems.rubyforge.org But on my FC3 everything is under /usr/lib/ruby !!! What do i have to do to get rails working ? Thx in advance My gem installation : [root@mactwist public]# gem dep Gem actionmailer-1.0.1 Requires actionpack (= 1.9.1) Gem actionpack-1.9.1 Requires activesupport (= 1.1.1) Gem actionwebservice-0.8.1 Requires actionpack (= 1.9.1) activerecord (= 1.11.1) activesupport (= 1.1.1) Gem activerecord-1.11.1 Requires activesupport (= 1.1.1) Gem activesupport-1.1.1 Gem fcgi-0.8.6.1 Gem mysql-2.6 Gem rails-0.13.1 Requires rake (>= 0.5.3) activesupport (= 1.1.1) activerecord (= 1.11.1) actionpack (= 1.9.1) actionmailer (= 1.0.1) actionwebservice (= 0.8.1) Gem rake-0.5.4 Gem rubygems-update-0.8.11 Gem sources-0.0.1 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails