我正在尝试运行 Sinatra 应用程序,但由于未找到机架而失败。我收到以下错误:
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 文件并再次运行 gem install。当我安装机架时,它成功而没有错误。