我正在尝试安装 Rails 3.1。
它说在这里的公告博客文章中使用“gem install rails --pre”:
http://weblog.rubyonrails.org/2011/5/22/rails-3-1-release-candidate
当我尝试
$ gem install rails --pre
我得到错误:
错误:执行 gem ... (NameError) 未初始化常量 Syck::Syck
该怎么办?
我正在尝试安装 Rails 3.1。
它说在这里的公告博客文章中使用“gem install rails --pre”:
http://weblog.rubyonrails.org/2011/5/22/rails-3-1-release-candidate
当我尝试
$ gem install rails --pre
我得到错误:
错误:执行 gem ... (NameError) 未初始化常量 Syck::Syck
该怎么办?
Regarding your specific problem: You may be seeing an error introduced by a faulty build of Rails 3.0.8.rc3 that got pushed as "rails --pre". See this issue in the Rails repository.
Instead of
gem install rails --pre
for the newest version, use
gem install rails -v ">=3.1.0rc"
or for 3.1.0.rc1 specifically:
gem install rails --version=3.1.0.rc1
See the guide referenced above for more advice.
An awesome guide for installing rails is www.installrails.com - that will probably help fix your problem.