2013-10-30 62 views
0

我正在嘗試使用rails-erd。我用最後一次是在二月和運行良好Bundle exec不起作用

我使用erdbundle exec erd

我收到此錯誤嘗試..我有軌道4在另一個項目,但在這個項目中,我使用軌道3.2。 15在寶石文件中

Loading application in 'my_app'... 
WARN: Unresolved specs during Gem::Specification.reset: 
     activerecord (>= 3.0) 
     i18n (>= 0.6.4, ~> 0.6) 
     multi_json (~> 1.3) 
     tzinfo (~> 0.3.37) 
WARN: Clearing out unresolved specs. 
Please report a bug if this causes problems. 
Failed: Gem::LoadError: You have already activated activesupport 4.0.0, but your Gemfile requires activesupport 3.2.15. Using bundle exec may solve this. 

這是什麼意思,我該如何解決這個問題?

+0

請向我們展示您正在運行的完整命令以獲取此錯誤。 –

+0

對不起,添加到該問題 –

回答

0

在應用程序中指定的Rails版本的Gemfile中,如果你還沒有這樣做:

寶石「軌道」,「3.2.15」

運行包安裝,然後嘗試運行該腳本再次使用bundle exec。

如果仍然不起作用,請嘗試卸載rails 4,然後運行它。

寶石卸載軌道

理想的情況下,如果你執行與捆綁的exec腳本它總是在使用的Gemfile當前捆綁的上下文中執行腳本。

2

錯誤顯示您已經激活了activesupport 4.0.0,但在gemfile.lock文件中activesupport的版本是3.2.15。 因此,只需刪除gemfile.lock文件並再次安裝捆綁軟件 它將採用最新版本的activesupportor,或者您可以手動更改版本。