jeb
December 22, 2009, 9:24am
1
I have a very annoying problem, when doing rake db:migrate, I get the
error message:
Missing these required gems:
will_paginate ~> 2.3.11
But the gem is not missing, It runs very well in my app. To make the
rake pass I have to comment out the gem in my environment.rb file.
environment.rb:
config.gem “will_paginate”, :version => “~> 2.3.11”, :source =>
“http://gemcutter.org ”
I use snow leopard. What have I done wrong?
Jonas-MB:stuteri jeb$ gem list
*** LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
authlogic (2.1.3)
nifty-generators (0.3.0)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
searchlogic (2.3.9)
sqlite3-ruby (1.2.5)
tabs_on_rails (1.0.0)
will_paginate (2.3.11)
Jonas-MB:stuteri jeb$ gem environment
RubyGems Environment:
RUBYGEMS VERSION: 1.3.5
RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]
INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
RUBY EXECUTABLE: /opt/local/bin/ruby
EXECUTABLE DIRECTORY: /opt/local/bin
RUBYGEMS PLATFORMS:
GEM PATHS:
/opt/local/lib/ruby/gems/1.8
/Users/jeb/.gem/ruby/1.8
GEM CONFIGURATION:
:update_sources => true
:verbose => true
:benchmark => false
:backtrace => false
:bulk_threshold => 1000
REMOTE SOURCES:
–
You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected] .
To unsubscribe from this group, send email to
[email protected] .
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en .
jeb
December 22, 2009, 3:40pm
2
Maybe rake gems
sudo rake gems:install
2009/12/22 jeb [email protected]
config.gem “will_paginate”, :version => “~> 2.3.11”, :source =>
actionmailer (2.3.5)
sqlite3-ruby (1.2.5)
EXECUTABLE DIRECTORY: /opt/local/bin
–
tommy xiao
E-mail: xiaods(AT)gmail.com
–
You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected] .
To unsubscribe from this group, send email to
[email protected] .
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en .
jeb
December 22, 2009, 6:52pm
3
config.gem “will_paginate”, :version => “~> 2.3.11”, :source =>
“http://gemcutter.org ”
My configuration is including “:lib => ‘will_paginate’”, so try like
this,
config.gem “will_paginate”, :version => “~> 2.3.11”, :lib =>
‘will_paginate’, :source => “http://gemcutter.org ”
It must be specified in here,
Rails::Initializer.run do |config|
config.gem “will_paginate”, :version => “~> 2.3.11”, :lib =>
‘will_paginate’, :source => “http://gemcutter.org ”
end
jeb
December 22, 2009, 7:04pm
4
Nope, the same problem…
On 22 Dec, 18:52, Duke Y. [email protected] wrote:
config.gem “will_paginate”, :version => “~> 2.3.11”, :lib =>
‘will_paginate’, :source => “http://gemcutter.org ”
end
–
Posted viahttp://www.ruby-forum.com/.
–
You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected] .
To unsubscribe from this group, send email to
[email protected] .
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en .
jeb
December 22, 2009, 7:11pm
5
On Dec 22, 8:23 am, jeb [email protected] wrote:
I have a very annoying problem, when doing rake db:migrate, I get the
error message:
Missing these required gems:
will_paginate ~> 2.3.11
But the gem is not missing, It runs very well in my app. To make the
rake pass I have to comment out the gem in my environment.rb file.
Is it possible that rake is from one install of ruby and but that when
you run your app a different install is used ? (compare the output of
which ruby and which rake)
Fred
actionmailer (2.3.5)
sqlite3-ruby (1.2.5)
–
You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected] .
To unsubscribe from this group, send email to
[email protected] .
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en .
jeb
December 22, 2009, 8:01pm
6
How about change version to ‘~> 2.3’, actually mine is ‘~> 2.3.2’ and
mislav-will_paginate (2.3.11)
jeb
December 22, 2009, 7:16pm
7
Thanks, but the problem remains.
On 22 Dec, 15:38, tommy xiao [email protected] wrote:
I have a very annoying problem, when doing rake db:migrate, I get the
“http://gemcutter.org ”
activeresource (2.3.5)
–
tommy xiao
E-mail: xiaods(AT)gmail.com
–
You received this message because you are subscribed to the Google
Groups “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected] .
To unsubscribe from this group, send email to
[email protected] .
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en .