0
我是一個新手入門。我剛開始學習Ubuntu,我正在使用版本10.04,特別是在rails上工作,並在我的大學項目中使用feedzirra。Ubuntu上的Ruby on Rails安裝錯誤
我收到以下錯誤。能否請你幫忙。
[email protected]:~/ruby$ ruby -v
ruby 1.8.8dev (2010-10-01) [i686-linux]
[email protected]:~/ruby$ rails -v
Rails 2.3.8
我已經被
[email protected]:~/ruby$ sudo gem list
*** LOCAL GEMS ***
actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activeresource (2.3.8)
activesupport (3.0.0, 2.3.8)
builder (2.1.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.1.0)
fastthread (1.0.7)
gem_plugin (0.2.3)
mdalessio-dryopteris (0.1.2)
mongrel (1.1.5)
mongrel_cluster (1.0.5)
mysql (2.8.1)
nokogiri (1.4.3.1)
pauldix-feedzirra (0.0.18)
pauldix-sax-machine (0.0.14)
rack (1.1.0)
rails (2.3.8)
rake (0.8.7)
taf2-curb (0.5.4.0)
xml-simple (1.0.12)
要啓動服務器,我輸入Ruby腳本/服務器
[email protected]:~/ruby/testapp$ ruby script/server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails 2.2.3 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...
Exiting
/home/anergroup/ruby/testapp/config/initializers/cookie_verification_secret.rb:7: undefined method `cookie_verifier_secret=' for ActionController::Base:Class (NoMethodError)
from /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load_without_new_constant_marking'
from /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
from /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
from /home/anergroup/ruby/testapp/config/../vendor/rails/railties/lib/initializer.rb:550:in `load_application_initializers'
from /home/anergroup/ruby/testapp/config/../vendor/rails/railties/lib/initializer.rb:549:in `each'
from /home/anergroup/ruby/testapp/config/../vendor/rails/railties/lib/initializer.rb:549:in `load_application_initializers'
from /home/anergroup/ruby/testapp/config/../vendor/rails/railties/lib/initializer.rb:167:in `process'
from /home/anergroup/ruby/testapp/config/../vendor/rails/railties/lib/initializer.rb:112:in `send'
from /home/anergroup/ruby/testapp/config/../vendor/rails/railties/lib/initializer.rb:112:in `run'
from /home/anergroup/ruby/testapp/config/environment.rb:9
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 /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
from /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/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 /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load_without_new_constant_marking'
from /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
from /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
from /home/anergroup/ruby/testapp/vendor/rails/railties/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 /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
from /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /home/anergroup/ruby/testapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
from /home/anergroup/ruby/testapp/vendor/rails/railties/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
爲什麼會出現這個錯誤寶石的名單?有沒有我失蹤的配置?
此外,是否有一個好的紅寶石的軌道emacs教程爲新手?
感謝您的幫助
高塔姆
嘗試刪除主動支持3.0.0 – hellvinz 2010-10-04 10:13:22
嗨,我刪除了主動支持3.0.0,但錯誤仍然存在.. – gkolan 2010-10-04 11:05:07
當我將以下2行作爲註釋#undefined方法'cookie_verifier_secret ='for ActionController :: Base:Class(NoMethodError) and #ActionController :: Base.cookie_verifier_secret ='6e6512c975f2d6a3ab7944536105a0e5214b5909d444b6322872ed841c9e4677de47c8d93a6ee7c083092c1697e2c4c75c7bd88b4a9e08c92b31f0755eec653d' – gkolan 2010-10-04 12:21:17