WebFaction
Community site: login faq

I've followed the instructions here:

http://docs.webfaction.com/software/redmine.html#installing-redmine

But, I get an error after running the step 6i, which is as follows:

Enter RAILS_ENV=production rake db:migrate and press Enter.

I get the following error:

[rammllc@web186 redmine-1.1.3]$ RAILS_ENV=production rake db:migrate

(in /home/rammllc/webapps/rails/redmine-1.1.3)
rake aborted!
undefined local variable or method `version_requirements' for #<rails::gemdependency:0xa1d8ddc>

(See full trace by running task with --trace)

Does anyone know the issue?

asked 30 Apr '11, 17:00

rammllc
133
accept rate: 0%


Our current default Rails installer sets up Rails 3.0.5, but Redmine won't work with that - it requires Rails 2.3.5. Please delete your Rails 3.0.5 app and install a Rails 2.3.5 app instead, then follow our installation procedure from step 2.

Hope that helps!

permanent link

answered 30 Apr '11, 17:09

seanf
12.2k31836
accept rate: 37%

I did exactly what you suggested above. I am still getting the same error...here is the output with the trace:

RAILS_ENV=production rake db:migrate --trace
(in /home/rammllc/webapps/redmine/redmine-1.1.3)
Invoke db:migrate (first_time)
Invoke environment (first_time)
** Execute environment
rake aborted!
undefined local variable or method version_requirements' for #<Rails::GemDependency:0xa567034> /home/rammllc/webapps/redmine/redmine-1.1.3/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:inrequirement'.........

Do you know the issue?

Thanks,

Doug

(01 May '11, 12:25) rammllc

Ok, sorry for the trouble. It looks like Redmine wants to use a version of RubyGems that is older than what is currently installed on your server. You can fix it by installing an older version of RubyGems locally with the following commands:

cd ~/webapps/redmine
export GEM_HOME=$PWD/gems
export PATH=$PWD/bin:$PATH
export RUBYLIB=$PWD/lib:$RUBYLIB
mkdir -p src && cd src
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
tar -xzf rubygems-1.3.7.tgz
cd rubygems-1.3.7
ruby setup.rb install --prefix=$HOME/webapps/redmine

After you've done that, continue from step 6.h in our Redmine doc.

Sorry again for the trouble!

permanent link

answered 01 May '11, 14:04

seanf
12.2k31836
accept rate: 37%

It worked!!!Thanks!!!

(01 May '11, 21:38) rammllc

This worked for me too

(30 Jan '12, 11:43) slashfoo
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×108
×102
×81
×46

question asked: 30 Apr '11, 17:00

question was seen: 4,492 times

last updated: 30 Jan '12, 11:43

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM