Project

General

Profile

Gemfile not 'catching'...

Added by Granny Smith about 13 years ago

Hi folks,

I'm getting a startup Passenger Error "Ruby on Rails application could not be started"

Error message:
"can't activate rack (~> 1.0.1, runtime), already activated rack-1.1.0. Make sure all dependencies are added to Gemfile." 

The problem is, I don't know who or what is requesting rack 1.0.1, because I need rack 1.1.0 (for current release or Redmine) and I believe I have installed it:

# gem list

*** LOCAL GEMS ***

actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
bundler (1.0.10)
cgi_multipart_eof_fix (2.5.0)
coderay (0.9.7)
daemon_controller (0.2.6)
daemons (1.1.0)
eventmachine (0.12.10)
fastthread (1.0.7)
file-tail (1.0.5)
hoe (1.9.0)
i18n (0.4.2)
json_pure (1.5.1)
mysql (2.8.1)
passenger (3.0.5, 3.0.4)
rack (1.1.1, 1.1.0, 1.0.1)
rails (2.3.11)
rake (0.8.7, 0.8.3)
RedCloth (4.2.7)
rubyforge (2.0.4)
rubytree (0.8.1, 0.5.2)
spruz (0.2.5)
thin (1.2.8)

...and specified it in my Gemfile:

source "http://rubygems.org" 
gem "rack", "1.1.0" 
gem "rails", "2.3.11" 
gem "rake", "0.8.7" 
gem "i18n", "0.4.2" 
gem "rubytree", "0.5.2", :require => "tree" 
gem "RedCloth", "~>4.2.3", :require => "redcloth" # for CodeRay
gem "mysql" 
gem "coderay", "~>0.9.7" 

...and yet the Gemfile doesn't seem to be 'catching': my RAILS_ENV is showing all old versions:

# RAILS_ENV=production script/about

/opt/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.  Use #requirement
About your application's environment
Ruby version              1.8.7 (i686-linux)
RubyGems version          1.4.2
Rack version              1.0
Rails version             2.3.5
Active Record version     2.3.5
Active Resource version   2.3.5
Action Mailer version     2.3.5
Active Support version    2.3.5
Edge Rails revision       unknown
Application root          /opt/redmine
Environment               production
Database adapter          mysql
Database schema version   20101114115359

...and yet:

# rails -v
Rails 2.3.11

Has my bundle Gemfile got a syntax error, or am I forgetting to do something simple, or any suggestions would be most graciously received!


Replies (1)

RE: Gemfile not 'catching'... - Added by Granny Smith about 13 years ago

Update:

I eventually got Redmine 1.1.2 working solidly on Centos.

What I did was to rename my Gemfile --> hiddenGemfile, just to see what would happen. The dam thing started working perfectly! It's a little unnerving, and probably prone to exploding should any gems ever be updated etc, but I guess I'll just try to avoid that happening.

    (1-1/1)