2011-10-26 64 views
1

我想運行一個Sinatra應用程序,並且因爲沒有找到機架而失敗。 我收到以下錯誤:警告:'/Library/Ruby/Gems/1.8/specifications/rack-1.3.5.gemspec'中的無效.gemspec格式

WARNING: Invalid .gemspec format in '/Library/Ruby/Gems/1.8/specifications/rack-1.3.5.gemspec' 
/Library/Ruby/Site/1.8/rubygems.rb:636:in `report_activate_error': Could not find RubyGem rack (~> 1.3, >= 1.3.4) (Gem::LoadError) 
    from /Library/Ruby/Site/1.8/rubygems.rb:141:in `activate' 
    from /Library/Ruby/Site/1.8/rubygems.rb:165:in `activate' 
    from /Library/Ruby/Site/1.8/rubygems.rb:164:in `each' 
    from /Library/Ruby/Site/1.8/rubygems.rb:164:in `activate' 
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:35:in `require' 

我正在運行的Ruby版本1.8.6

我試圖刪除文件gemspec運行寶石重新安裝。當我安裝機架時,它會成功無誤。

+0

按照說明這裏來修復它。 http://stackoverflow.com/questions/5771758/invalid-gemspec-because-of-the-date-format-in-specification – jim0thy

回答

0

你試過這個gem update --system

2

嘗試更新您的rubygem包

寶石更新--system