From: Marcelo Giorgi Date: 2011-03-06T07:12:55+09:00 Subject: Re: undefined class/module YAML::PrivateType - Error I got a similar issue while installing roles_mongoid on my system (Ubuntu 10.04 (32b), using rvm, ruby: 1.9.2-p180, rubygems 1.6.1). So the exception is the same, in fact I tried to install it by cloning the gem repo and got the same results: roles_mongoid$ rake install --trace (in /home/marcelo/workspace/roles_mongoid) ** Invoke install (first_time) ** Invoke build (first_time) ** Execute build Successfully built RubyGem Name: roles_mongoid Version: 0.4.5 File: roles_mongoid-0.4.5.gem ** Execute install Executing "ruby -S gem install ./pkg/roles_mongoid-0.4.5.gem": ruby -S gem install ./pkg/roles_mongoid-0.4.5.gem ERROR: While executing gem ... (ArgumentError) undefined class/module YAML::PrivateType rake aborted! Command failed with status (1): [ruby -S gem install ./pkg/roles_mongoid-0....] /home/marcelo/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:995:in `block in sh' /home/marcelo/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:1010:in `call' /home/marcelo/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake.rb:1010:in `sh' Does anyone faced a similar problem or have any idea about this issue ? BTW: By using other rubygems version (such us 1.5.x) I've got the same issue. But, If I use Rubygems 1.3.7 I've got a different issue: $ rake install (in /home/marcelo/workspace/roles_mongoid) WARNING: no rubyforge_project specified Successfully built RubyGem Name: roles_mongoid Version: 0.4.5 File: roles_mongoid-0.4.5.gem Executing "ruby -S gem install ./pkg/roles_mongoid-0.4.5.gem": ruby -S gem install ./pkg/roles_mongoid-0.4.5.gem ERROR: While executing gem ... (Gem::Exception) ruby_code case not handled: Syck::PrivateType Any help would be highly appreciated :) -- Posted via http://www.ruby-forum.com/.