Rack.rb:17: warning: already initialized constant VERSION

Despite the resolved thread #2255 (https://rails.lighthouseapp.com/
rails-232) , I get a VERSION warning :

ruby script/console
Loading development environment (Rails 2.3.2)
action_controller/vendor/rack-1.0/rack.rb:17: warning: already
initialized constant VERSION

  • freezed RELEASE= or unfreezed, I get same error
  • uninstalled rack-0.9.1 I get :

[~/rails/test]# ruby script/console
Loading development environment (Rails 2.3.2)
report_activate_error': Could not find RubyGem rack (>= 0.9.1, < 1.0) (Gem::LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:141:inactivate’
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:165:in activate' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:164:ineach’
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:164:in activate' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 35:inrequire’
from /home/useraxis/rails/test/vendor/rails/activesupport/lib/
active_support/dependencies.rb:156:in require' from /home/useraxis/rails/test/vendor/rails/activesupport/lib/ active_support/dependencies.rb:521:innew_constants_in’
from /home/useraxis/rails/test/vendor/rails/activesupport/lib/
active_support/dependencies.rb:156:in require' ... 23 levels... from /usr/lib/ruby/1.8/irb/init.rb:250:inload_modules’
from /usr/lib/ruby/1.8/irb/init.rb:21:in setup' from /usr/lib/ruby/1.8/irb.rb:54:instart’
from /home/useraxis/local/bin/irb:13

the line 17 is : VERSION = [0,1]

Can this fault something else ?
Is someone having the same issue ?

Thanks in advance

I have the same issue, will post if I find a solution to the problem.

For future reference:

It seems like Rack-Cache 0.5, Rack 1.0 and Rails 2.3.2 solved the
(I uninstalled Rack-Cache 0.4, Rack 0.9.1, Shotgun 0.2 and Sinatra

Thanks Peter,

I had the same error and I installed Rack-Cache 0.5 and Rack 1.0 and
it fixed my problem hope this helps others.

sudo gem install rack-cache
sudo gem install rack

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs