2011-05-11 141 views
2

我安装了RVM,然后安装了最新版本的Ruby。现在,当我尝试生成一个新的rails应用程序时,我收到以下错误消息。RVM Ruby on Snow Leopard

NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. 
    Gem::Specification#default_executable= called from /Users/local/.rvm/gems/[email protected]/specifications/rake-0.8.7.gemspec:10. 
    NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. 
    Gem::Specification#default_executable= called from /Users/local/.rvm/gems/ruby-1.9.2-p180/specifications/rake-0.8.7.gemspec:10. 
    NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. 
    Gem::Specification#default_executable= called from /Users/local/.rvm/gems/ruby-1.9.2-p180/specifications/rubygems-update-1.8.1.gemspec:11. 
    /Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [rake-0.8.7, rake-0.8.7, rubygems-update-1.8.1] (Gem::LoadError) 
     from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec' 
     from /Library/Ruby/Site 

/1.8/rubygems.rb:1182:in `gem' 
    from /usr/bin/rails:18 

任何想法,为什么发生这种情况?

回答

8

请确保您有实际安装您的RVM安装导轨宝石:

gem install rails 

否则,它会默认运行Rails雪豹(该/usr/bin/rails文件)

预装的版本

您所看到的所有弃用消息都只是警告; RubyGems的最新版本弃用lot的东西。

+0

这样做的技巧谢谢 – 2011-05-11 05:11:03

0

我只是想补充...

我有同样的问题。我试过几次安装滑轨。如果有其他人遇到这种情况,如果上述情况不起作用,则需要为该目录​​提供适当的权限。详细信息:

我在Mac OS 10.6.8上运行Rails。在我的用户目录中,我喜欢为我的开发工作设置一个Projects目录。在将项目目录修改为777之后,我能够正常运行rails。

我希望这有助于。