2011-05-28 76 views
1

我做安裝SproutCore的寶石如下:SproutCore的安裝 - 找不到RubyGem

$ 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寶石..出於某種原因。然而:

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

谷歌似乎並不知道這個答案,也沒有Sproutcore網站。我可能使用其中一個安裝程序進行安裝,但我寧願只通過RubyGems並將此錯誤信息輸出。有人有什麼主意嗎?非常感謝。

回答

2

我解決了這個運行

gem update --system

,並重新安裝了SproutCore:

sudo gem install sproutcore --pre

不知道爲什麼這工作了,但我想我只是需要進行更新。