Jas*_*ost 2 rvm ruby-on-rails-3
我安装了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
Run Code Online (Sandbox Code Playgroud)
对于为什么会发生这种情况的任何想法?
确保为RVM安装实际安装了rails gem:
gem install rails
Run Code Online (Sandbox Code Playgroud)
否则,它将默认运行预装在Snow Leopard上的Rails版本(/usr/bin/rails文件)
您看到的所有弃用消息都只是警告; RubyGems的最新版本弃用了很多东西.
| 归档时间: |
|
| 查看次数: |
3550 次 |
| 最近记录: |