Sproutcore安装 - 找不到RubyGem

时间:2011-05-28 17:50:29

标签: rubygems gem sproutcore

我通过执行以下操作来安装sproutcore gem:

$ sudo gem install sproutcore --pre
Fetching: haml-3.1.1.gem (100%)
Fetching: sass-3.1.1.gem (100%)
Fetching: fssm-0.2.7.gem (100%)
Fetching: compass-0.11.1.gem (100%)
Fetching: thin-1.2.11.gem (100%)
Building native extensions.  This could take a while...
Fetching: sproutcore-1.6.0.rc.2.gem (100%)
Successfully installed haml-3.1.1
Successfully installed sass-3.1.1
Successfully installed fssm-0.2.7
Successfully installed compass-0.11.1
Successfully installed thin-1.2.11
Successfully installed sproutcore-1.6.0.rc.2

但是当我尝试运行sc-init时,我收到以下错误:

$ sc-init sc-microblog
/Users/joris/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:926:in `report_activate_error': Could not find RubyGem sproutcore (>= 0) (Gem::LoadError)
        from /Users/joris/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:244:in `activate_dep'
        from /Users/joris/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:236:in `activate'
        from /Users/joris/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:1307:in `gem'
        from /Users/joris/.rvm/rubies/ruby-1.9.2-p180/bin/sc-init:18:in `<main>'

它似乎没有找到它刚安装的sproutcore gem ..出于某种原因。但是:

$ which sproutcore
/Users/joris/.rvm/rubies/ruby-1.9.2-p180/bin/sproutcore

Google似乎不知道答案,Sproutcore网站也没有。我可以使用其中一个安装程序进行安装,但我宁愿通过RubyGems来解决这个错误信息。有谁有想法吗?非常感谢。

1 个答案:

答案 0 :(得分:2)

我通过运行

解决了这个问题

gem update --system

再次安装sproutcore:

sudo gem install sproutcore --pre

不知道为什么现在这样有效,但我想我只需要更新..