Uninitialized constant Psych :: Syck with Rails 3 / Rubygems 1.6.2 / bundler 1.0.10

I am trying to set up my Ruby on rails dev environment on my macbook pro, but encountered this error:

/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:89:in load': uninitialized constant Psych::Syck (NameError) from /usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:289:in_load '

I tried using a different yaml engine by specifying syck in config / boot.rb, but that didn't work.

requires 'yaml' YAML :: ENGINE.yamler = 'syck'

I am using Rails 3 / Ruby 1.9.2-p180 / Bundler 1.0.10 / RubyGems 1.6.2. I installed ruby ​​1.9.2 via brew.

+3
source share
3 answers

The rubygems update worked for me.

gem update --system
+4
source

If you have this:

gem "rspec-rails", ">= 2.0.0.beta.20"

remove ', " >= 2.0.0.b.20."

gem "rspec-rails"

+2

All Articles