2011-05-11 140 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。

我希望這有助於。