3

I'm trying to setup my ruby on rails dev environment on my macbook pro but running into this error:

/usr/local/Cellar/ruby/1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:289: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 another yaml engine by specifying syck in config/boot.rb but that didn't work.

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

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

tommy chheng
  • 9,108
  • 9
  • 55
  • 72

3 Answers3

4

Update rubygems worked for me.

gem update --system
toonsend
  • 1,296
  • 13
  • 16
2

If you have this :

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

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

gem "rspec-rails"

It works for me

Dinatih
  • 2,456
  • 1
  • 21
  • 21