辐射cms 1.1.4要求/兼容性

时间:2014-05-29 10:24:39

标签: ruby-on-rails ruby gem radiant

当前环境:

radiant version: 1.1.4
rvm version: 1.25.26
ruby version: 1.9.2p320
gem version: 1.7.2
rails version: 2.3.18

本地宝石:

actionmailer (2.3.18)
actionpack (2.3.18)
activerecord (2.3.18)
activeresource (2.3.18)
activesupport (2.3.18)
acts_as_list (0.1.4)
acts_as_tree (0.1.1)
bluecloth (2.1.0)
bundler (1.6.2)
bundler-unload (1.0.2)
chunky_png (1.3.1)
cocaine (0.3.2)
coffee-script (2.2.0)
coffee-script-source (1.7.0)
compass (0.12.6)
compass-rails (1.0.3)
delocalize (0.2.6)
execjs (2.1.0)
executable-hooks (1.3.1)
fssm (0.2.10)
gem-wrappers (1.2.4)
haml (3.1.8)
highline (1.6.21)
json (1.8.1)
mime-types (2.3)
minitest (1.6.0)
mysql (2.8.1)
paperclip (2.7.5)
rack (1.1.6)
rack-cache (1.2)
radiant (1.1.4)
radiant-archive-extension (1.0.7)
radiant-clipped-extension (1.1.1)
radiant-debug-extension (1.0.2)
radiant-exporter-extension (1.1.0)
radiant-markdown_filter-extension (1.0.2)
radiant-sheets-extension (1.1.0)
radiant-site_templates-extension (1.0.6)
radiant-smarty_pants_filter-extension (1.0.2)
radiant-snippets-extension (1.1.3)
radiant-textile_filter-extension (1.0.4)
radius (0.7.4)
rails (2.3.18)
rake (10.3.2, 0.8.7)
rdoc (4.1.1, 2.5.8)
RedCloth (4.2.9)
rubygems-bundler (1.4.3)
rubygems-update (1.7.2)
rubypants (0.2.0)
rvm (1.11.3.9)
sass (3.2.19)
sqlite3 (1.3.9)
stringex (1.3.3)
tzinfo (0.3.39)
uuidtools (2.1.4)
will_paginate (2.3.16)

错误:

NameError: uninitialized constant Paperclip::Glue
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:466:in `rescue in load_missing_constant'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:462:in `load_missing_constant'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:106:in `const_missing_with_dependencies'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/paperclip-2.7.5/lib/paperclip/railtie.rb:24:in `insert'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/paperclip-2.7.5/rails/init.rb:2:in `block in evaluate_init_rb'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rails-2.3.18/lib/rails/plugin.rb:158:in `eval'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rails-2.3.18/lib/rails/plugin.rb:158:in `block in evaluate_init_rb'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-2.3.18/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rails-2.3.18/lib/rails/plugin.rb:154:in `evaluate_init_rb'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rails-2.3.18/lib/rails/plugin.rb:48:in `load'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rails-2.3.18/lib/rails/plugin/loader.rb:38:in `block in load_plugins'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rails-2.3.18/lib/rails/plugin/loader.rb:37:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rails-2.3.18/lib/rails/plugin/loader.rb:37:in `load_plugins'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rails-2.3.18/lib/initializer.rb:369:in `load_plugins'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/radiant-1.1.4/lib/radiant/initializer.rb:329:in `load_plugins'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rails-2.3.18/lib/initializer.rb:165:in `process'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rails-2.3.18/lib/initializer.rb:113:in `run'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/radiant-1.1.4/lib/radiant/initializer.rb:266:in `run'
/rails_apps/i-kwenta/releases/20130405081839/config/environment.rb:14:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `block in require'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:547:in `new_constants_in'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rails-2.3.18/lib/tasks/misc.rake:4:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:199:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:199:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.2-p320/bin/rake:19:in `load'
/usr/local/rvm/gems/ruby-1.9.2-p320/bin/rake:19:in `<main>'

到config / environment.rb

# Be sure to restart your server when you modify this file

# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
ENV['RAILS_ENV'] ||= 'development'

# Specifies gem version of Rails to use when vendor/rails is not present
require File.join(File.dirname(__FILE__), 'boot')

require 'radius'

YAML::ENGINE.yamler = 'syck' if RUBY_VERSION =~ /1.9/

Radiant::Initializer.run do |config|
  # Skip frameworks you're not going to use (only works if using vendor/rails).
  # To use Rails without a database, you must remove the Active Record framework
  # config.frameworks -= [ :action_mailer ]

  # Only load the extensions named here, in the order given. By default all
  # extensions in vendor/extensions are loaded, in alphabetical order. :all
  # can be used as a placeholder for all extensions not explicitly named.
  # config.extensions = [ :all ]

  # Unload the extensions named here.
  # config.ignore_extensions []

  # Your secret key for verifying cookie session data integrity.
  # If you change this key, all old sessions will become invalid!
  # Make sure the secret is at least 30 characters and all random,
  # no regular words or you'll be exposed to dictionary attacks.
  config.action_controller.session = {
    :key => '_current_session',
    :secret      => '8866bfdcc630ddf7497ed5f4e04efe17c2e327f0'
  }

  # Comment out this line if you want to turn off all caching, or
  # add options to modify the behavior. In the majority of deployment
  # scenarios it is desirable to leave Radiant's cache enabled and in
  # the default configuration.
  #
  # Additional options:
  #  :use_x_sendfile => true
  #    Turns on X-Sendfile support for Apache with mod_xsendfile or lighttpd.
  #  :use_x_accel_redirect => '/some/virtual/path'
  #    Turns on X-Accel-Redirect support for nginx. You have to provide
  #    a path that corresponds to a virtual location in your webserver
  #    configuration.
  #  :entitystore => "radiant:tmp/cache/entity"
  #    Sets the entity store type (preceding the colon) and storage
  #   location (following the colon, relative to Rails.root).
  #    We recommend you use radiant: since this will enable manual expiration.
  #  :metastore => "radiant:tmp/cache/meta"
  #    Sets the meta store type and storage location.  We recommend you use
  #    radiant: since this will enable manual expiration and acceleration headers.
  config.middleware.use ::Radiant::Cache

  # Use the database for sessions instead of the cookie-based default,
  # which shouldn't be used to store highly confidential information
  # (create the session table with 'rake db:sessions:create')
  config.action_controller.session_store = :cookie_store

  # Activate observers that should always be running
  config.active_record.observers = :user_action_observer

  # Make Active Record use UTC-base instead of local time
  config.time_zone = 'UTC'

  # Set the default field error proc
  config.action_view.field_error_proc = Proc.new do |html, instance|
    if html !~ /label/
      %{<span class="error-with-field">#{html} <span class="error">#{[instance.error_message].flatten.first}</span></span>}
    else
      html
    end
  end

  config.after_initialize do
    # Add new inflection rules using the following format:
    ActiveSupport::Inflector.inflections do |inflect|
      inflect.uncountable 'config'
    end
  end
end

大家好帮帮我吧。我一直坚持这个错误,我找不到解决方案。是gems或ruby的版本与辐射cms 1.1.4不兼容还是什么?

0 个答案:

没有答案