未初始化的常量Syck :: DefaultResolver

时间:2010-12-28 02:14:42

标签: ruby-on-rails-3 rake yaml ruby-1.9.1

我是一个相当新的开发ruby,特别是rails,但我确实有一些perl和php经验。无论如何,我正在尝试使用最新的ruby包rails在Ubuntu 10.10上配置v1.9.2-p136版本3。这不是太好了,虽然比p0更好:至少他们包括了yaml.rb和朋友,所以我不会把时间花在他们身上。但是,我仍然遇到YAML包的问题,​​每当我尝试安装或配置任何 gem或包时,它都会出现。我已经通过synaptic安装了rails;这只是为了展示这个问题。

gem i rails
ERROR:  Loading command: install (NameError)
uninitialized constant Syck::DefaultResolver
ERROR:  While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand

当我尝试使用redmine安装synaptic时,实际显示了这一点:它现在表示每个突触安装都以失败告终,这完全是因为:

rake aborted!
uninitialized constant Syck::DefaultResolver
/usr/local/lib/ruby/1.9.1/rake.rb:2482:in `const_missing'
/usr/local/lib/ruby/1.9.1/syck.rb:82:in `<module:Syck>'
/usr/local/lib/ruby/1.9.1/syck.rb:80:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
/usr/local/lib/ruby/site_ruby/1.9.1/yaml/syck.rb:5:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
/usr/local/lib/ruby/site_ruby/1.9.1/yaml.rb:12:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
/usr/share/redmine/vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:2:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
/usr/share/redmine/vendor/rails/railties/lib/rails/gem_dependency.rb:1:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
/usr/share/redmine/vendor/rails/railties/lib/initializer.rb:10:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
/usr/share/redmine/config/boot.rb:45:in `load_initializer'
/usr/share/redmine/config/boot.rb:38:in `run'
/usr/share/redmine/config/boot.rb:11:in `boot!'
/usr/share/redmine/config/boot.rb:110:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
/usr/share/redmine/Rakefile:4:in `<top (required)>'
/usr/local/lib/ruby/1.9.1/rake.rb:2373:in `load'
/usr/local/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile'
/usr/local/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'
/usr/local/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'
/usr/local/lib/ruby/1.9.1/rake.rb:1991:in `run'
/usr/local/bin/rake:31:in `<main>'
dpkg: error processing redmine (--configure):
subprocess installed post-installation script returned error exit status 1

1 个答案:

答案 0 :(得分:0)

我写了一篇关于安装这个版本的Ruby的指南:http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you。它应该让你立刻开始运行。