Неспособность грабли на ap_geq_3 - PullRequest
2 голосов
/ 19 июня 2011

У меня есть удаленный сервер с настройкой, которую я не могу изменить, поэтому не могу обновить себя из-за проблем:

Ruby в версии 1.8.7 Rubygems в версии 1.6.2 Rails находится на версии 2.3.4

Получая следующий ответ, когда я пытаюсь установить или запустить сценарий / сервер для моего приложения как на рабочем, так и на рабочем уровне:

undefined method `ap_geq_3?' for Haml::Util:Module

I 'Я использую capistrano и bundler, и мои выходные данные пакета:

    Using rake (0.8.7)
    Using activesupport (2.3.4)
    Using rack (1.0.1)
    Using actionpack (2.3.4)
    Using actionmailer (2.3.4)
    Using activerecord (2.3.4)
    Using activeresource (2.3.4)
    Using bundler (1.0.10)
    Using haml (3.1.2)
    Using mysql (2.8.1)
    Using rails (2.3.4)
    Updating .gem files in vendor/cache

Я действительно не знаю, как диагностировать проблему дальше и найти основной конфликт.Любая помощь очень ценится!Спасибо.

Полный след ошибки:

    rake aborted!
    undefined method `ap_geq_3?' for Haml::Util:Module
    /usr/local/lib/ruby/gems/1.8/gems/haml-3.1.1/rails/../lib/haml/railtie.rb:1
    <--applocation-->/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    <--applocation-->/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    <--applocation-->/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    <--applocation-->/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    /usr/local/lib/ruby/gems/1.8/gems/haml-3.1.1/rails/../lib/haml.rb:47
    <--applocation-->/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    <--applocation-->/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    <--applocation-->/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    <--applocation-->/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    /usr/local/lib/ruby/gems/1.8/gems/haml-3.1.1/rails/../init.rb:2
    /usr/local/lib/ruby/gems/1.8/gems/haml-3.1.1/rails/init.rb:1:in `load'
    /usr/local/lib/ruby/gems/1.8/gems/haml-3.1.1/rails/init.rb:1:in `evaluate_init_rb'
    <--applocation-->/config/../vendor/rails/railties/lib/rails/plugin.rb:158:in `evaluate_init_rb'
    <--applocation-->/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
    <--applocation-->/config/../vendor/rails/railties/lib/rails/plugin.rb:154:in `evaluate_init_rb'
    <--applocation-->/config/../vendor/rails/railties/lib/rails/plugin.rb:48:in `load'
    <--applocation-->/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:38:in `load_plugins'
    <--applocation-->/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in `each'
    <--applocation-->/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in `load_plugins'
    <--applocation-->/config/../vendor/rails/railties/lib/initializer.rb:369:in `load_plugins'
    <--applocation-->/config/../vendor/rails/railties/lib/initializer.rb:165:in `process'
    <--applocation-->/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
    <--applocation-->/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
    <--applocation-->/config/environment.rb:20
    <--applocation-->/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    <--applocation-->/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    <--applocation-->/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    <--applocation-->/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    <--applocation-->/vendor/rails/railties/lib/tasks/misc.rake:4
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
    /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
    /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
    /usr/local/bin/rake:19:in `load'
    /usr/local/bin/rake:19
...