Freeze and dependence problems?

Hello

I have a server using Rails 1.1.6

So I developed my application on my computer, with Rails 2.1
After that I did a rake rails:freeze:gems. That sent Rail gems was sent
to /vendor/rails
I sent my application to server, configured, and everything was working
fine, using Rails 2.1 Freezed Version.

Now I need to install a plugin (will_paginate).
But when I try to ‘require’ it, it says my Active Support is too old.


$ruby script/about
Ruby version 1.8.5 (i386-linux)
RubyGems version 1.1.1
Rails version 2.1.0
Active Record version 2.1.0
Action Pack version 2.1.0
Active Resource version 2.1.0
Action Mailer version 2.1.0
Active Support version 2.1.0
Edge Rails revision unknown
Application root /home/username/app/
Environment development
Database adapter mysql
Database schema version 0


#environment.rb
RAILS_GEM_VERSION = ‘2.1.0’ unless defined? RAILS_GEM_VERSION


$ruby script/console

RAILS_GEM_VERSION
=> “2.1.0”

require “rubygems”
=> []

require “will_paginate”
Gem::LoadError: RubyGem version error: activesupport(1.1.0 not >= 1.4.4)

    from /usr/lib/site_ruby/1.8/rubygems.rb:523:in

report_activate_error' from /usr/lib/site_ruby/1.8/rubygems.rb:131:inactivate’
[…]


See? Application is freezed in 2.1 and script/about confirm that
When I try to require, it says my gems are 1.1.0!

Anyone know what can I do?

Thanks!

On Jun 26, 4:37 am, Fernando B. [email protected]
wrote:

See? Application is freezed in 2.1 and script/about confirm that
When I try to require, it says my gems are 1.1.0!

Anyone know what can I do?

will_paginate probably doesn’t realise that a non gem version of
activesupport is already loaded. Are you using the latest version of
will_paginate ?

Fred

Frederick C. wrote:

On Jun 26, 4:37�am, Fernando B. [email protected]
wrote:

See? Application is freezed in 2.1 and script/about confirm that
When I try to require, it says my gems are 1.1.0!

Anyone know what can I do?

will_paginate probably doesn’t realise that a non gem version of
activesupport is already loaded. Are you using the latest version of
will_paginate ?

Fred

Yes. I’m using this version

Fixed it commenting

s.add_dependency(%q, [">= 1.4.4"])

in gems\specifications\mislav-will_paginate-2.3.2.gemspec

Working now :slight_smile: