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

John Goerzen, 2008-03-06 18:25

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 1 John Goerzen
<code>apt-get install ruby rake rubygems</code>
10 1 John Goerzen
11 2 John Goerzen
h2. Configure your user environment
12 2 John Goerzen
13 2 John Goerzen
As an individual user, edit your ~/.bashrc file and add a line such as this:
14 2 John Goerzen
15 2 John Goerzen
<code>export GEM_PATH=$HOME/gems</code>
16 2 John Goerzen
17 2 John Goerzen
Log out and back on.  Make sure your GEM_PATH is set:
18 2 John Goerzen
19 2 John Goerzen
<code>echo $GEM_PATH</code>
20 2 John Goerzen
21 2 John Goerzen
And make the directory for the gems:
22 2 John Goerzen
23 2 John Goerzen
<code>mkdir ~/gems</code>
24 2 John Goerzen
25 2 John Goerzen
Now, install rails:
26 2 John Goerzen
27 2 John Goerzen
<code>gem install -i $GEM_PATH rails -y</code>