Project

General

Profile

Problem installing redmine on Ubuntu 10.04: Problem with rake

Added by Samax Tripwood over 13 years ago

Hi, I've a problem when I try to install Redmine on my Ubuntu.
I'm at step 4 of the Installation step of the official Redmine installation documentation page ([[http://www.redmine.org/projects/redmine/wiki/RedmineInstall]]). Rake wasn't installed so I did it using aptitude, and now when I'm try to execute this command:

rake generate_session_store

I get the following error message:

(in /var/www/redmine)
rake aborted!
no such file to load -- rubygems
/var/www/redmine/Rakefile:4:in `require'
(See full trace by running task with --trace)

When I execute the same command with the --trace option, I get the following:

(in /var/www/redmine)
rake aborted!
no such file to load -- rubygems
/var/www/redmine/config/boot.rb:113:in `require'
/var/www/redmine/config/boot.rb:113
/var/www/redmine/Rakefile:4:in `require'
/var/www/redmine/Rakefile:4
/usr/lib/ruby/1.8/rake.rb:2383:in `load'
/usr/lib/ruby/1.8/rake.rb:2383:in `raw_load_rakefile'
/usr/lib/ruby/1.8/rake.rb:2017:in `load_rakefile'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:2016:in `load_rakefile'
/usr/lib/ruby/1.8/rake.rb:2000:in `run'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1998:in `run'
/usr/bin/rake:28

So I gone to the file boot.rb, which is located in the config directory of Redmine, and at the line 113 I found this:

require 'rubygems'

I think it try to include the file rubygems.rb (or I've mistaken something ?), and after a search in the Redmine directory and its sub-directories it appears that this file is effectively missing.

Can someone try to help me to solve this issue ?

Thanks in advance!


Replies (2)

RE: Problem installing redmine on Ubuntu 10.04: Problem with rake - Added by Felix Schäfer over 13 years ago

You must install some things for redmine to work, one of them is rails 2.3.5, which should pull rake, rubygems, and so on. You might want to try the redmine ubuntu package to see if it works better for you.

RE: Problem installing redmine on Ubuntu 10.04: Problem with rake - Added by Samax Tripwood over 13 years ago

Thank you for your answer, that worked very well after installing all dependencies. I'm sorry, I thought all these where contained in the redmine's vendor/ folder.

    (1-2/2)