Rails 3.1 on Ubuntu 11.04 via RVM - uninitialized constant Psych::Syck

冷暖自知 提交于 2020-01-12 06:34:47

问题


gem install rails --pre
ERROR:  While executing gem ... (NameError)
    uninitialized constant Psych::Syck

I can't seem to find any info on how to resolve this. Has anyone else had the same problem?

I am using a newly created gemset in RVM with Ruby 1.9.2


回答1:


I had exactly same problem on mac via RVM. Specifying version is the rescue for me.

gem install rails --pre --version 3.1.0.rc1

update (2011-06-12) with rubygems 1.8.4, I can install rails 3.1.0.rc4 without specifying the version.




回答2:


I had exactly the same problem, and the other solutions mentioned here didn't work for me.

However, this did:

gem update --system


来源:https://stackoverflow.com/questions/6181621/rails-3-1-on-ubuntu-11-04-via-rvm-uninitialized-constant-psychsyck

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!