Debian Lenny: RubyGem version error: rack(1.2.1 not ~> 1.0.1)
Added by John J. about 14 years ago
Hi,
I've downloaded 1.0.0 from forge and followed the instructions at http://www.redmine.org/wiki/redmine/RedmineInstall . However, when I'm about to run
RAILS_ENV=production rake db:migrate --trace
I get
$ RAILS_ENV=production rake db:migrate --trace (in /www/redmine-1.0.0) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! RubyGem version error: rack(1.2.1 not ~> 1.0.1) /www/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:271:in `require_frameworks' /www/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:134:in `process' /www/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:113:in `send' /www/redmine-1.0.0/config/../vendor/rails/railties/lib/initializer.rb:113:in `run' /www/redmine-1.0.0/config/environment.rb:20 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' /www/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require' /www/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in' /www/redmine-1.0.0/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require' /www/redmine-1.0.0/vendor/rails/railties/lib/tasks/misc.rake:4 /usr/lib/ruby/1.8/rake.rb:546:in `call' /usr/lib/ruby/1.8/rake.rb:546:in `execute' /usr/lib/ruby/1.8/rake.rb:541:in `each' /usr/lib/ruby/1.8/rake.rb:541:in `execute' /usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:501:in `synchronize' /usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:518:in `invoke_prerequisites' /usr/lib/ruby/1.8/rake.rb:1183:in `each' /usr/lib/ruby/1.8/rake.rb:1183:in `send' /usr/lib/ruby/1.8/rake.rb:1183:in `each' /usr/lib/ruby/1.8/rake.rb:515:in `invoke_prerequisites' /usr/lib/ruby/1.8/rake.rb:507:in `invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:501:in `synchronize' /usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:494:in `invoke' /usr/lib/ruby/1.8/rake.rb:1931:in `invoke_task' /usr/lib/ruby/1.8/rake.rb:1909:in `top_level' /usr/lib/ruby/1.8/rake.rb:1909:in `each' /usr/lib/ruby/1.8/rake.rb:1909:in `top_level' /usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1903:in `top_level' /usr/lib/ruby/1.8/rake.rb:1881:in `run' /usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1878:in `run' /usr/bin/rake:28
I don't know what the ~ is meant to be exactly in ~> , but it looks like the number should be fine, as in 1.0.1 < 1.2.1 ?
thanks
Replies (5)
RE: Debian Lenny: RubyGem version error: rack(1.2.1 not ~> 1.0.1)
-
Added by Felix Schäfer about 14 years ago
The version is not fine as enough stuff changed in rake that you will need 1.0.1, as specified in RedmineInstall. You should be able to install both versions concurrently though, try something like gem install rake -v=1.0.1
.
RE: Debian Lenny: RubyGem version error: rack(1.2.1 not ~> 1.0.1)
-
Added by John J. about 14 years ago
How embarrassing, I thought I was doing it by the installation guide but I failed :-/
I had much more troubles but succeeded in the end.
On Debian Lenny it's really a pain. I removed as much Debian specific packages as possible and installed everything from freshly installed Gem as well.
Thank you very much!
RE: Debian Lenny: RubyGem version error: rack(1.2.1 not ~> 1.0.1)
-
Added by Felix Schäfer about 14 years ago
Well, debian has a somewhat patched version of redmine packaged in apt, and those patches are to make it work with the (older) ruby/rails packages debian comes with.
RE: Debian Lenny: RubyGem version error: rack(1.2.1 not ~> 1.0.1)
-
Added by Felix Schäfer about 14 years ago
Anyway, glad you got it working :-)
RE: Debian Lenny: RubyGem version error: rack(1.2.1 not ~> 1.0.1)
-
Added by Eren Aykin over 13 years ago
Felix Schäfer wrote:
...try something like
gem install rake -v=1.0.1
.
Just a quick correction that it should be install rack -v=1.0.1.