After upgrading my Rails installation to Rails 3 on OS X, Ive had problems with Rails 2.x development sites with Mongrel. WEBrick seems to work, but I really would like to get some good Mongrel output for debugging.
After running $ script/server I get the following:
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in `load': no such file to load -- mongrel_rails (MissingSourceFile) from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in `load' from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in `load' from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb:64 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:49:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:49:in `require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require' from /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:49:in `gem_original_require'
So far, this is what Ive tried:
$ sudo gem update system
$ sudo gem update
$ sudo gem uninstall mongrel
$ sudo gem install mongrel --include-dependencies
$ which mongrel_rails
→ /usr/bin/mongrel_rails
$ mongrel_rails start
→ Success, but not stdout
$ which mongrel_rails
→ /usr/bin/mongrel_rails
$ rails _2.0.2_ test
→ The new application has the same problem.
- OS: OS X.6.x
- Rails: 3.0.5 (problems with Rails 2.x applications)
gem -v : 1.6.1- Mongrel: mongrel (1.1.5)
Ive read EVERY Google result on "- mongrel_rails (MissingSourceFile)"; there are many.
Can someone here tell me how to continue debugging? Thanks!
UPDATE:
Now I tried to install older versions of the gems and specify them in the Rails 2.x config/environment.rb file. Ive tried 1.1.5, 1.1.4 and 1.2.0pre.
None of this makes the slightest difference.
Since the in in usr/bin im executable is wondering if there was a file permissions issue that was messed up on my Rails 3, and if one of the files doesn’t get my paths when it starts?
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb belongs to admin / root, so this should be OK, right?
Could this be a problem with active_support !?
Here is the code from dependencies.rb that throws an error:
484 class Object 485 486 alias_method :load_without_new_constant_marking, :load 487 488 def load(file, *extras)
This leads to a file error not found, so I am not looking for it, where I know what the file will be ... Running mongrel_rails on the command line works ... Which mongrel_rails shows this in usr/bin , So what's the problem?