Project

General

Profile

Unable to run rake commands

Added by Ed Rought about 13 years ago

Hey All,
Up front I am VERY new to Ruby, so please forgive me if this is a stupid question.

I am trying to setup email receiving on a Redmine install on Ubuntu 10.10 and I cannot get any Rake commands to work. I have tried the ones in the docs\RUNNING_TESTS file and they do not work.

All Rake commands come back with an error like the following:

user@ubuntu:~/redmine-1.1.1-0/apps/redmine$ rake -tasks test
(in /home/user/redmine-1.1.1-0/apps/redmine)
rake aborted!
no such file to load - rubygems
/home/user/redmine-1.1.1-0/apps/redmine/Rakefile:4:in `require’
(See full trace by running task with —trace)

I installed rake using the ‘sudu apt-get rake’ as indicated the first time I tried to run rake, but that just made all subsequent commands get the error above.

I have gone through the wiki on setting up email receiving and have not been able to find what I am missing.

Any help would be greatly appreciated.


Replies (2)

RE: Unable to run rake commands - Added by Felix Schäfer about 13 years ago

Does your redmine installation work already?

RE: Unable to run rake commands - Added by Ed Rought about 13 years ago

After a number of hours of searching, I was able to find that it was the way Bitnami installs their redmine stack and had to use a script of theirs in front of the redmine rake command.

To solve the issue, I created a bash script that first runs the Bitnami security/pathing script and then runs the rake command. After that, the email receiving is working fine.

So if you install Redmine from a Bitnami stack, look in the scripts folder at the default script that sets paths and use that in front of the rake.

Hope that helps someone else

    (1-2/2)