2012-06-25 23 views
1

我跑爲什麼bundle在目錄X中創建捆綁包?

bundle install 

它完成,沒有錯誤,只是在最後一行,它印:

Your bundle is complete! It was installed into ./linecache 

有沒有在Gemfile中linecache提及。我甚至嘗試過刪除我的Gemfile.lock並再次調用bundle install的極端措施。同樣的結果。

發生了什麼事?

回答

2

想通了。我曾輸入:

bundle install linecache 

(這是另一個故事)。捆綁將remember linecache並將其用作後續捆綁的目錄。最簡單的(雖然重手)解決方法是從頂層Rails項目目錄中刪除.bundle配置文件:

rm .bundle/config 

...讓包重新創建它下一次你運行bundle安裝。稍微乾淨是編輯your_project_directory/.bundle/config並刪除讀取的行:

BUNDLE_PATH: ... 

希望這樣可以節省別人一些頭部劃傷。

相關問題