while trying to start some old revision of an opensource rails project confronted with a cloudy error message:
在尝试启动面向多云错误消息的opensource rails项目的旧版本时:
"can't activate activesupport (>= 2.3.2, runtime), already activated activesupport-2.1.2"
“无法激活activesupport(> = 2.3.2,运行时),已激活activesupport-2.1.2”
What does it mean? Either versions of rails and activesupport are installed on my box.
这是什么意思?我的盒子上安装了rails和activesupport两种版本。
I'm confused...
6 个解决方案
#1
4
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.
通常,在Rails尝试加载2.3.2之前,gem或插件正在加载2.1.2。找出问题的最佳方法可能是一次一个地注释掉environment.rb中的每个gem要求,看看会发生什么。
#2
4
If you don't need the older version of the gem the easiest way to get up and running is to remove it.
如果您不需要旧版本的gem,最简单的启动和运行方法就是删除它。
gem uninstall activesupport
To remove the old versions.
删除旧版本。
#3
0
Do you have installed the recent active support gem?
您是否安装了最近的活动支持gem?
#4
0
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.
查看与错误消息关联的跟踪。我最近遇到了这个问题,其中有一个脚本/进程/收割器的实例,它由Capistrano运行并预加载旧版本。在跟踪中,它显示了试图加载旧版本的文件。
#5
0
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.
由于该错误,Rails的Active Support无效,因为在您的计算机上,Active Support Gem安装了2.1.2版本,而项目需要该gem的最新版本(2.3.2)。
IMHO, I think you have to upgrade the gem, because a lot a times I solved typing this on terminal:
恕我直言,我认为你必须升级宝石,因为很多次我解决了在终端上输入这个:
gem install gem_name
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.
其中gem_name是要安装的gem的名称。 Ruby将删除旧版本并安装新版本。从http://rubyforge.org/frs/?group_id=570下载activesupport-2.3.2.gem并将其放在项目目录中并执行命令。
You can find here other gems on: http://rubygems.org/
你可以在这里找到其他宝石:http://rubygems.org/
#6
0
I was also getting the same error but later i updated the Rails and downloaded all the dependencies and issue got resolved.
我也得到了相同的错误,但后来我更新了Rails并下载了所有依赖项并解决了问题。
#1
4
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.
通常,在Rails尝试加载2.3.2之前,gem或插件正在加载2.1.2。找出问题的最佳方法可能是一次一个地注释掉environment.rb中的每个gem要求,看看会发生什么。
#2
4
If you don't need the older version of the gem the easiest way to get up and running is to remove it.
如果您不需要旧版本的gem,最简单的启动和运行方法就是删除它。
gem uninstall activesupport
To remove the old versions.
删除旧版本。
#3
0
Do you have installed the recent active support gem?
您是否安装了最近的活动支持gem?
#4
0
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.
查看与错误消息关联的跟踪。我最近遇到了这个问题,其中有一个脚本/进程/收割器的实例,它由Capistrano运行并预加载旧版本。在跟踪中,它显示了试图加载旧版本的文件。
#5
0
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.
由于该错误,Rails的Active Support无效,因为在您的计算机上,Active Support Gem安装了2.1.2版本,而项目需要该gem的最新版本(2.3.2)。
IMHO, I think you have to upgrade the gem, because a lot a times I solved typing this on terminal:
恕我直言,我认为你必须升级宝石,因为很多次我解决了在终端上输入这个:
gem install gem_name
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.
其中gem_name是要安装的gem的名称。 Ruby将删除旧版本并安装新版本。从http://rubyforge.org/frs/?group_id=570下载activesupport-2.3.2.gem并将其放在项目目录中并执行命令。
You can find here other gems on: http://rubygems.org/
你可以在这里找到其他宝石:http://rubygems.org/
#6
0
I was also getting the same error but later i updated the Rails and downloaded all the dependencies and issue got resolved.
我也得到了相同的错误,但后来我更新了Rails并下载了所有依赖项并解决了问题。