首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RVM Ruby on Snow Leopard

RVM Ruby on Snow Leopard
EN

Stack Overflow用户
提问于 2011-05-11 12:45:56
回答 2查看 3.6K关注 0票数 2

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

代码语言:javascript
复制
    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

你知道为什么会发生这种事吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-05-11 13:04:57

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

代码语言:javascript
复制
gem install rails

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

您看到的所有弃用消息都只是警告;最新版本的RubyGems弃用了一大堆lot

票数 8
EN

Stack Overflow用户

发布于 2012-10-21 01:08:46

我只是想补充一下...

我也有同样的问题。我尝试了几次安装rails。如果其他人遇到了这个问题,并且上面的方法不起作用,那么问题是要给目录适当的权限。详细信息:

我在MacOS10.6.8上运行Rails。在我的用户目录中,我喜欢为我的开发工作设置一个项目目录。在将项目目录修改为777后,我可以很好地运行rails。

我希望这能帮到你。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5959387

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档