我安装了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你知道为什么会发生这种事吗?
发布于 2011-05-11 13:04:57
确保已经为RVM安装实际安装了rails gem:
gem install rails否则,它将默认运行Snow Leopard上预先安装的Rails版本( /usr/bin/rails文件)
您看到的所有弃用消息都只是警告;最新版本的RubyGems弃用了一大堆lot。
发布于 2012-10-21 01:08:46
我只是想补充一下...
我也有同样的问题。我尝试了几次安装rails。如果其他人遇到了这个问题,并且上面的方法不起作用,那么问题是要给目录适当的权限。详细信息:
我在MacOS10.6.8上运行Rails。在我的用户目录中,我喜欢为我的开发工作设置一个项目目录。在将项目目录修改为777后,我可以很好地运行rails。
我希望这能帮到你。
https://stackoverflow.com/questions/5959387
复制相似问题