Hello,
I can’t figure out why my cgi/fcgi doesn’t work with the way I’ve
installed rails. I have a brand new rails app and run dispatch.cgi, and
I get a long backtrace, seemingly about being unable to detect rails
version. I am using rails 1.1.6 because that is the version the CMS I
am trying to build is built against.
Not sure if this bug against rails 1.2 has anything to do with it:
http://dev.rubyonrails.org/ticket/6698
Backtrace and gem list below.
Thanks,
Jeff Henrikson
jehenrik@jhenrikson:~/src/test_rails_boot$ ruby -d public/dispatch.cgi
Exception NameError' at ./public/../config/boot.rb:14 - uninitialized constant Rails /var/lib/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:334: warning:
*’ interpreted as argument prefix
/var/lib/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:363:
warning: *' interpreted as argument prefix /var/lib/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:224: warning: instance variable @ignore_new_methods not initialized /var/lib/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:224: warning: instance variable @ignore_new_methods not initialized /var/lib/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:41: warning: method redefined; discarding old allow_concurrency= /var/lib/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/sqlserver_adapter.rb:456: warning: method redefined; discarding old remove_column Exception
MissingSourceFile’ at
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27 - no such file to load
– db2/db2cli
Exception MissingSourceFile' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:35 - no such file to load -- db2/db2cli Exception
MissingSourceFile’ at
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
- no such file to load – db2/db2cli
/var/lib/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/oracle_adapter.rb:119:
warning: (…) interpreted as grouped expression
ExceptionMissingSourceFile' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- oci8 Exception
MissingSourceFile’ at
/usr/lib/ruby/1.8/rubygems/custom_require.rb:35 - no such file to load
– oci8
Exception `MissingSourceFile’ at
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150 - no such file to load – oci8
ExceptionMissingSourceFile' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- oci8 Exception
MissingSourceFile’ at
/usr/lib/ruby/1.8/rubygems/custom_require.rb:35 - no such file to load
– oci8
Exception `MissingSourceFile’ at
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150 - no such file to load – oci8
Exception `MissingSourceFile’ at
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/requires.rb:19 - no such file to load – oci8
ExceptionMissingSourceFile' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- sybsql Exception
MissingSourceFile’ at
/usr/lib/ruby/1.8/rubygems/custom_require.rb:35 - no such file to load
– sybsql
Exception `MissingSourceFile’ at
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150 - no such file to load – sybsql
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/request.rb:171:
warning: method redefined; discarding old relative_url_root
ExceptionMissingSourceFile' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- Win32API Exception
MissingSourceFile’ at
/usr/lib/ruby/1.8/rubygems/custom_require.rb:35 - no such file to load
– Win32API
Exception `MissingSourceFile’ at
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150 - no such file to load – Win32API
Exception `Interrupt’ at /usr/lib/ruby/1.8/rubygems/custom_require.rb:27
Exception `Interrupt’ at
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
Exception `Interrupt’ at
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
Exception `Interrupt’ at
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
Exception `Interrupt’ at
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
Exception `Interrupt’ at
/var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:150
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in require': Interrupt from /var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require’
from /usr/lib/ruby/1.8/cgi/session/pstore.rb:12
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
require' from /var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require’
from
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_ext/cgi_ext.rb:3
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
require' from /var/lib/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require’
from
/var/lib/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_process.rb:1
… 10 levels…
from /usr/lib/ruby/1.8/rubygems.rb:58:in `require_gem’
from ./public/…/config/boot.rb:28
from ./public/…/config/environment.rb:11
from public/dispatch.cgi:3
OS Packages:
- debian sarge
- postgresql 8.1
- apache2 2.0.54-5sarge1
- libfcgi0 2.4.0-5
- ruby 1.8.4 via apt-get
- gem 0.9.0 via apt-get
- all gems via gem install, not apt install
jehenrik@jhenrikson:/src/instiki-0.11.pl1$ gem list
*** LOCAL GEMS ***
actionmailer (1.2.5)
Service layer for easy email delivery and testing.
actionpack (1.12.5)
Web-flow and rendering framework putting the VC in MVC.
actionwebservice (1.1.6)
Web service support for Action Pack.
activerecord (1.14.4)
Implements the ActiveRecord pattern for ORM.
activesupport (1.4.0, 1.3.1)
Support and utility classes used by the Rails framework.
daemons (0.4.4)
A toolkit to create and control daemons in different ways
fcgi (0.8.7)
FastCGI library for Ruby.
gem_plugin (0.2.1)
A plugin system based only on rubygems that uses dependencies only
postgres-pr (0.4.0)
A pure Ruby interface to the PostgreSQL (>= 7.4) database
rails (1.1.6)
Web-application framework with template engine, control-flow layer,
and ORM.
rake (0.7.3, 0.7.1)
Ruby based make-like utility.
sources (0.0.1)
This package provides download sources for remote gem installation
tzinfo (0.3.3)
Daylight-savings aware timezone library