can't activate activesupport (>= 2.3.2, runtime), already activated activesupport-2.1.2. what does it mean?

房东的猫 提交于 2019-12-10 03:41:46

问题


while trying to start some old revision of an opensource rails project confronted with a cloudy error message:

"can't activate activesupport (>= 2.3.2, runtime), already activated activesupport-2.1.2"

What does it mean? Either versions of rails and activesupport are installed on my box.

I'm confused...


回答1:


Generally, a gem or plugin is loading 2.1.2 before Rails attempts to load 2.3.2. Best way to figure it out might be to comment out each gem requirement in environment.rb one at a time and see what happens.




回答2:


If you don't need the older version of the gem the easiest way to get up and running is to remove it.

gem uninstall activesupport

To remove the old versions.




回答3:


Do you have installed the recent active support gem?




回答4:


Look in the trace associated with the error message. I recently encountered this problem where there was an instance of script/process/reaper which was getting run by Capistrano and preloading the older version. In the trace it showed the file which was trying to load the older version.




回答5:


with that error, Rails' Active Support is not working, because on your machine the Active Support Gem is installed with 2.1.2 version while the project requires a recent version (2.3.2) of that gem.

IMHO, I think you have to upgrade the gem, because a lot a times I solved typing this on terminal:

gem install gem_name

where gem_name is the name of the gem you want to install. Ruby will remove the old version and install the newer. Download the activesupport-2.3.2.gem from http://rubyforge.org/frs/?group_id=570 and place it on the directory of your project and execute the command.

You can find here other gems on: http://rubygems.org/




回答6:


I was also getting the same error but later i updated the Rails and downloaded all the dependencies and issue got resolved.



来源:https://stackoverflow.com/questions/1199421/cant-activate-activesupport-2-3-2-runtime-already-activated-activesuppor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!