我用过
rvm 1.8.7 do gem install sproutcore 它已成功安装,但现在运行sproutcore gen project getting_started时,它显示以下错误:
/Users/user/.rvm/gems/ruby-1.8.7-p370/gems/sproutcore-1.8.2.1/vendor/chance/lib/chance/instance/slicing.rb:22: syntax error, unexpected ':', expecting '}'
mtime: file[:mtime],
^
/Users/user/.rvm/gems/ruby-1.8.7-p370/gems/sproutcore-1.8.2.1/vendor/chance/lib/chance/instance/slicing.rb:23: syntax error, unexpected ':', expecting '='
canvas: canvas
^
/Users/user/.rvm/gems/ruby-1.8.7-p370/gems/sproutcore-1.8.2.1/vendor/chance/lib/chance/instance/slicing.rb:234: syntax error, unexpected $end, expecting kEND发布于 2012-07-20 23:00:27
我认为这是Ruby 1.8.7的一个“已知错误”,因为它使用的一些语法只在1.9中可用。
您可能应该尝试升级到Ruby 1.9.2或1.9.3,这应该可以解决这个问题。
发布于 2013-05-25 17:10:27
我同意Topher Fangio的观点,但补充一句:这就是我所做的。
gem update --systemhttps://stackoverflow.com/questions/11577087
复制相似问题