RVM 红宝石在雪豹上



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

    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@global/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

知道为什么会这样吗?

确保您为 RVM 安装实际安装了 rails gem:

gem install rails

否则,它将默认运行预安装在 Snow Leopard 上的 Rails 版本(/usr/bin/rails文件)

你看到的所有弃用消息都只是警告;最新版本的RubyGems弃用了很多东西。

我只是想补充一下...

我有同样的问题。我尝试了几次安装导轨。如果其他人遇到这种情况并且上述方法不起作用,则需要为目录提供适当的权限。详:

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

我希望这有所帮助。

相关内容

  • 没有找到相关文章

最新更新