2013-01-02 46 views
2

我有一個在使用RVM時創建的應用程序。我切換到rbenv並無法讓它工作。當我嘗試運行服務器,它說,它無法找到formastic寶石:從RVM切換到rbenv後,服務器找不到寶石

Could not find formtastic-2.2.1 in any of the sources 
Try running `bundle install`. 

如果我運行bundle install,它說我的包是完整的,但formtastic沒有列出。

然而,bundle show formtastic表明,它的安裝:

bundle show formtastic 
/Users/me/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/formtastic-2.2.1 

,但服務器無法找到它:

Macintosh-2:$ rails s 
Could not find formtastic-2.2.1 in any of the sources 
Try running `bundle install`. 
+0

最有可能的服務器使用.rvm的紅寶石。你如何啓動服務器?如果重命名.rvm目錄會怎樣? –

+0

@DiegoBasch我做了rvm implode刪除rvm。我以爲這是應該刪除rvm。我通常會啓動服務器'rails s' – Leahcim

回答

1

除了運行命令rvm implode刪除RVM,我也不得不從主目錄中刪除.rvm目錄,因爲系統似乎正在尋找寶石:

rm -rf .rvm 

一旦我刪除了,我能夠啓動服務器。