事實上,從我從git repo克隆的現有rails應用程序內運行時,所有與gem相關的命令都會導致相同的錯誤消息。運行「軟件包安裝」失敗並要求我運行「軟件包安裝」
$ bundle install
Could not find tzinfo-0.3.27 in any of the sources
Run `bundle install` to install missing gems.
$ gem list
Could not find tzinfo-0.3.27 in any of the sources
Run `bundle install` to install missing gems.
$ bundle update
Could not find tzinfo-0.3.27 in any of the sources
Run `bundle install` to install missing gems.
$ rails -v
Could not find tzinfo-0.3.27 in any of the sources
Run `bundle install` to install missing gems.
我以爲我已經安裝了護欄......(下面的命令是從應用程序目錄外運行):
$ rails -v
Rails 3.0.3
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0]
任何想法,以「包安裝」是了,告訴我運行「捆綁安裝」?
我離開我的應用程序目錄和手動做
sudo gem install tzinfo -v 0.3.27
但在再次進入我的應用程序目錄,並試圖「捆綁安裝」 ...
$ bundle install
Could not find polyglot-0.3.1 in any of the sources
Run `bundle install` to install missing gems.
於是我又回來了的應用程序目錄,沒有
sudo gem install polyglot -v 0.3.1
「包安裝」現在產生
$ bundle install
Could not find treetop-1.4.9 in any of the sources
Run `bundle install` to install missing gems.
爲什麼我不得不在過去的一切,我沒有這些隨機寶石手工安裝到? (新開發環境)。任何人都知道我可以在自己的環境中設置錯誤嗎?
你的Gemfile中有什麼,它包含'source'http:// rubygems.org''? – daeltar
它包含來源:rubygems,添加源'http://rubygems.org'沒有幫助,同樣的錯誤。 – Tim
另外...事實證明,我可以運行'捆綁安裝--gemfile = myApp/Gemfile',但它失敗的另一個錯誤(無關,我認爲)。爲什麼我無法從應用程序目錄中運行軟件包安裝? – Tim