Project

General

Profile

HowTo Install Redmine in a home directory on Debian » History » Version 8

Anonymous, 2009-07-12 20:49

1 1 John Goerzen
h1. HowTo Install Redmine in a home directory on Debian
2
3 2 John Goerzen
It seems that the version of Rails in Debian does not play well with Redmine.  We will therefore use Debian packages for the basic Ruby and rubygems infrastructure, but install the remaining parts in a local home directory.
4
5 1 John Goerzen
h2. Preparation
6
7
First, as root, run:
8
9 3 John Goerzen
<pre>
10
apt-get install ruby rake rubygems
11
</pre>
12 1 John Goerzen
13 6 John Goerzen
You'll also want Ruby drivers for you databases, which are in one of these packages:
14
15
* libpgsql-ruby for PostgreSQL
16
* libmysql-ruby
17
* libsqlite3-ruby
18
19 2 John Goerzen
h2. Configure your user environment
20
21 1 John Goerzen
As an individual user, edit your ~/.bashrc file and add a line such as this:
22
23 3 John Goerzen
<pre>
24
export GEM_PATH=$HOME/gems
25
</pre>
26 1 John Goerzen
27
Log out and back on.  Make sure your GEM_PATH is set:
28
29 3 John Goerzen
<pre>
30
echo $GEM_PATH
31
</pre>
32 1 John Goerzen
33
And make the directory for the gems:
34 2 John Goerzen
35 3 John Goerzen
<pre>
36
mkdir ~/gems
37
</pre>
38 1 John Goerzen
39 2 John Goerzen
Now, install rails:
40
41 3 John Goerzen
<pre>
42
gem install -i $GEM_PATH rails -y
43
</pre>
44 4 John Goerzen
45
Then proceed to the [[RedmineInstall]] instructions.
46
47 5 John Goerzen
If you will be running this under FastCGI or some other environment, make sure the GEM_PATH gets passed along.
48
49 8 Anonymous
_(It would be highly valuable to the entire user community if someone were so generous & knowledgeable to post (or link to another post) step-by-step how to for enabling fastCGI here)_
50 7 Anonymous
51 4 John Goerzen
Thanks to Eric Davis for help with this procedure.