Created
September 8, 2009 21:48
-
-
Save dphiffer/183263 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm getting the error message "uninitialized constant ActiveRecord::Base (NameError)" when running my web app with Mongrel or Passenger. Here's the full start-up log: | |
script/server | |
=> Booting Mongrel (use 'script/server webrick' to force WEBrick) | |
=> Rails 2.2.2 application starting on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
** Starting Mongrel listening at 0.0.0.0:3000 | |
** Starting Rails with development environment... | |
Problems loading RmagickProcessor: no such file to load -- RMagick | |
** has_many_polymorphs: rails environment detected | |
** has_many_polymorphs: loaded ok | |
** has_many_polymorphs: autoload hook invoked | |
** has_many_polymorphs: preloading parent model UndirectedRelation | |
** has_many_polymorphs: associating Audio.relators | |
SQL (0.2ms) SET client_min_messages TO 'panic' | |
SQL (0.1ms) SET client_min_messages TO 'notice' | |
** has_many_polymorphs: associating AudioPackage.relators | |
** has_many_polymorphs: associating AudioProgram.relators | |
** has_many_polymorphs: associating CollectionCatalogueObject.relators | |
** has_many_polymorphs: associating CollectionCatalogueArtist.relators | |
** has_many_polymorphs: associating Event.relators | |
** has_many_polymorphs: associating Exhibition.relators | |
** has_many_polymorphs: associating FilmExhibition.relators | |
** has_many_polymorphs: associating FilmScreening.relators | |
** has_many_polymorphs: associating Film.relators | |
** has_many_polymorphs: associating ExhibitionArchetype.relators | |
** has_many_polymorphs: associating EventArchetype.relators | |
** has_many_polymorphs: associating FullsizeImage.relators | |
** has_many_polymorphs: associating Location.relators | |
** has_many_polymorphs: associating Program.relators | |
** has_many_polymorphs: associating Publication.relators | |
** has_many_polymorphs: associating Interactive.relators | |
** has_many_polymorphs: associating Video.relators | |
** has_many_polymorphs: associating VideoPackage.relators | |
** has_many_polymorphs: associating VideoProgram.relators | |
** has_many_polymorphs: associating Audio.relatees | |
** has_many_polymorphs: associating AudioPackage.relatees | |
** has_many_polymorphs: associating AudioProgram.relatees | |
** has_many_polymorphs: associating CollectionCatalogueObject.relatees | |
** has_many_polymorphs: associating CollectionCatalogueArtist.relatees | |
** has_many_polymorphs: associating Event.relatees | |
** has_many_polymorphs: associating Exhibition.relatees | |
** has_many_polymorphs: associating FilmExhibition.relatees | |
** has_many_polymorphs: associating FilmScreening.relatees | |
** has_many_polymorphs: associating Film.relatees | |
** has_many_polymorphs: associating ExhibitionArchetype.relatees | |
** has_many_polymorphs: associating EventArchetype.relatees | |
** has_many_polymorphs: associating FullsizeImage.relatees | |
** has_many_polymorphs: associating Location.relatees | |
** has_many_polymorphs: associating Program.relatees | |
** has_many_polymorphs: associating Publication.relatees | |
** has_many_polymorphs: associating Interactive.relatees | |
** has_many_polymorphs: associating Video.relatees | |
** has_many_polymorphs: associating VideoPackage.relatees | |
** has_many_polymorphs: associating VideoProgram.relatees | |
** has_many_polymorphs: autoload hook invoked | |
** has_many_polymorphs: preloading parent model UndirectedRelation | |
Exiting | |
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:442:in `load_missing_constant': uninitialized constant ActiveRecord::Base (NameError) | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77:in `const_missing' | |
from /Users/dphiffer/Sites/moma.org/vendor/plugins/rails-dev-boost/lib/rails_development_boost/dependencies_patch.rb:116:in `update_activerecord_related_references' | |
from /Users/dphiffer/Sites/moma.org/vendor/plugins/rails-dev-boost/lib/rails_development_boost/dependencies_patch.rb:82:in `handle_connected_constants' | |
from /Users/dphiffer/Sites/moma.org/vendor/plugins/rails-dev-boost/lib/rails_development_boost/dependencies_patch.rb:64:in `remove_constant' | |
from /Users/dphiffer/Sites/moma.org/vendor/plugins/rails-dev-boost/lib/rails_development_boost/dependencies_patch.rb:152:in `prevent_further_removal_of' | |
from /Users/dphiffer/Sites/moma.org/vendor/plugins/rails-dev-boost/lib/rails_development_boost/dependencies_patch.rb:62:in `remove_constant' | |
from /Users/dphiffer/Sites/moma.org/vendor/plugins/rails-dev-boost/lib/rails_development_boost/dependencies_patch.rb:141:in `fetch_module_cache' | |
from /Users/dphiffer/Sites/moma.org/vendor/plugins/rails-dev-boost/lib/rails_development_boost/dependencies_patch.rb:61:in `remove_constant' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:547:in `new_constants_in' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:547:in `each' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:547:in `new_constants_in' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' | |
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:147:in `rails' | |
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in `cloaker_' | |
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:149:in `call' | |
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:149:in `listener' | |
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_' | |
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in `call' | |
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in `initialize' | |
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new' | |
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run' | |
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run' | |
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:142:in `load_without_new_constant_marking' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:142:in `load' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:142:in `load' | |
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/mongrel.rb:64 | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' | |
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
from script/server:3 | |
Here is my gem list: | |
*** LOCAL GEMS *** | |
actionmailer (2.2.2) | |
actionpack (2.2.2) | |
activerecord (2.2.2) | |
activerecord-odbc-adapter (2.0) | |
activeresource (2.2.2) | |
activesupport (2.2.2) | |
authlogic (2.1.1) | |
calendar_date_select (1.15) | |
capistrano (2.5.5) | |
cgi_multipart_eof_fix (2.5.0) | |
columnize (0.3.0) | |
daemons (1.0.10) | |
echoe (3.1.1) | |
fastercsv (1.4.0) | |
fastthread (1.0.7) | |
gbarcode (0.98.16) | |
gem_plugin (0.2.3) | |
highline (1.5.1) | |
hoe (1.9.0) | |
hpricot (0.8.1) | |
htmlentities (4.0.0) | |
linecache (0.43) | |
mislav-will_paginate (2.3.7) | |
mongrel (1.1.5) | |
net-scp (1.0.2) | |
net-sftp (2.0.2) | |
net-ssh (2.0.15) | |
net-ssh-gateway (1.0.1) | |
paginator (1.1.1) | |
passenger (2.0.6) | |
postgres (0.7.9.2008.01.28) | |
rack (1.0.0, 0.9.1) | |
rails (2.2.2) | |
rake (0.8.7) | |
rubyforge (1.0.4) | |
RubyInline (3.8.1) | |
wirble (0.1.2) | |
ZenTest (4.1.4) | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.3.5 | |
- RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] | |
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 | |
- RUBY EXECUTABLE: /usr/local/bin/ruby | |
- EXECUTABLE DIRECTORY: /usr/local/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby | |
- x86-darwin-10 | |
- GEM PATHS: | |
- /usr/local/lib/ruby/gems/1.8 | |
- /Users/dphiffer/.gem/ruby/1.8 | |
- GEM CONFIGURATION: | |
- :update_sources => true | |
- :verbose => true | |
- :benchmark => false | |
- :backtrace => false | |
- :bulk_threshold => 1000 | |
- :sources => ["http://gems.rubyforge.org/", "http://gems.github.com"] | |
- REMOTE SOURCES: | |
- http://gems.rubyforge.org/ | |
- http://gems.github.com | |
Here's my ruby -v: | |
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0] | |
All of this was compiled from source with the following flags set: | |
export MACOSX_DEPLOYMENT_TARGET=10.6 | |
export CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" | |
export CCFLAGS="-arch x86_64 -g -Os -pipe" | |
export CXXFLAGS="-arch x86_64 -g -Os -pipe" | |
export LDFLAGS="-arch x86_64 -bind_at_load" | |
export EXTRA_LIBS=-lresolv; | |
And here's the configure script I used when compiling Ruby: | |
./configure \ | |
--with-readline-dir=/usr/local \ | |
--with-iconv-dir=/usr/local \ | |
--enable-shared \ | |
--enable-pthread \ | |
CFLAGS=-D_XOPEN_SOURCE=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment