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

John Goerzen, 2008-03-06 18:32

1 1 John Goerzen
h1. HowTo Install Redmine in a home directory on Debian
2 1 John Goerzen
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 2 John Goerzen
5 1 John Goerzen
h2. Preparation
6 1 John Goerzen
7 1 John Goerzen
First, as root, run:
8 1 John Goerzen
9 3 John Goerzen
<pre>
10 3 John Goerzen
apt-get install ruby rake rubygems
11 3 John Goerzen
</pre>
12 1 John Goerzen
13 2 John Goerzen
h2. Configure your user environment
14 2 John Goerzen
15 1 John Goerzen
As an individual user, edit your ~/.bashrc file and add a line such as this:
16 1 John Goerzen
17 3 John Goerzen
<pre>
18 3 John Goerzen
export GEM_PATH=$HOME/gems
19 3 John Goerzen
</pre>
20 1 John Goerzen
21 1 John Goerzen
Log out and back on.  Make sure your GEM_PATH is set:
22 1 John Goerzen
23 3 John Goerzen
<pre>
24 3 John Goerzen
echo $GEM_PATH
25 3 John Goerzen
</pre>
26 1 John Goerzen
27 1 John Goerzen
And make the directory for the gems:
28 2 John Goerzen
29 3 John Goerzen
<pre>
30 3 John Goerzen
mkdir ~/gems
31 3 John Goerzen
</pre>
32 1 John Goerzen
33 2 John Goerzen
Now, install rails:
34 2 John Goerzen
35 3 John Goerzen
<pre>
36 3 John Goerzen
gem install -i $GEM_PATH rails -y
37 3 John Goerzen
</pre>
38 4 John Goerzen
39 4 John Goerzen
Then proceed to the [[RedmineInstall]] instructions.
40 4 John Goerzen
41 4 John Goerzen
Thanks to Eric Davis for help with this procedure.