5

我正在尝试安装 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

该怎么办?

4

3 回答 3

10

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.

于 2011-06-02T00:59:13.103 回答
2
于 2011-06-02T00:55:04.807 回答
0

An awesome guide for installing rails is www.installrails.com - that will probably help fix your problem.

于 2013-10-21T22:16:48.927 回答