16

我正在尝试安装 rails 3.0.0.beta 并且遇到了这个问题:

justins-mac-: justinz$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
justins-mac-justinz$ rails -help
/Library/Ruby/Site/1.8/rubygems.rb:384:in `bin_path': can't find executable rails for rails-3.0.0.beta (Gem::Exception)
 from /usr/bin/rails:19
justins-mac-justinz$ rails -v
/Library/Ruby/Site/1.8/rubygems.rb:384:in `bin_path': can't find executable rails for rails-3.0.0.beta (Gem::Exception)
 from /usr/bin/rails:19
justins-mac-justinz$ 

关于这里发生了什么的任何线索?

4

3 回答 3

25
sudo gem install railties --pre
于 2010-02-06T18:50:45.037 回答
11

升级 ruby​​gems 并清理后,您需要:

gem install railties --pre
于 2010-02-23T10:10:00.023 回答
0

尝试

sudo gem update --system

既然这没有任何作用,请尝试

sudo gem cleanup

然后重新安装。

于 2010-02-06T06:25:50.593 回答