tommy chheng
tommy chheng

Reputation: 9218

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

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.

Upvotes: 3

Views: 3449

Answers (3)

toonsend
toonsend

Reputation: 1342

Update rubygems worked for me.

gem update --system

Upvotes: 4

Dinatih
Dinatih

Reputation: 2476

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

Upvotes: 2

Related Questions