Freeze and dependence problems?

2 views
Skip to first unread message

Fernando Brito

unread,
Jun 25, 2008, 11:37:35 PM6/25/08
to rubyonra...@googlegroups.com
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:in `activate'
[...]

---------------

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!
--
Posted via http://www.ruby-forum.com/.

Frederick Cheung

unread,
Jun 26, 2008, 3:52:16 AM6/26/08
to Ruby on Rails: Talk


On Jun 26, 4:37 am, Fernando Brito <rails-mailing-l...@andreas-s.net>
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
>
> Thanks!
> --
> Posted viahttp://www.ruby-forum.com/.

Fernando Brito

unread,
Jun 27, 2008, 12:06:26 AM6/27/08
to rubyonra...@googlegroups.com
Frederick Cheung wrote:
> On Jun 26, 4:37�am, Fernando Brito <rails-mailing-l...@andreas-s.net>
> 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
http://github.com/mislav/will_paginate/

Fernando Brito

unread,
Jun 27, 2008, 1:15:54 AM6/27/08
to rubyonra...@googlegroups.com
Fixed it commenting

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

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


Working now :)

Reply all
Reply to author
Forward
0 new messages