Project

General

Profile

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

Jan Niggemann (redmine.org team member), 2015-02-02 18:07
archive page

1 1 John Goerzen
h1. HowTo Install Redmine in a home directory on Debian
2
3 9 Jan Niggemann (redmine.org team member)
|{background-color:#f88}. *This page has been archived and is no longer updated*.
4
Please be aware that the information provided on this page may be out of date, or otherwise inaccurate.
5
The main [[Archive|archive page]] has a short explanation.|
6
7
----
8
9 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.
10
11 1 John Goerzen
h2. Preparation
12
13
First, as root, run:
14
15 3 John Goerzen
<pre>
16
apt-get install ruby rake rubygems
17
</pre>
18 1 John Goerzen
19 6 John Goerzen
You'll also want Ruby drivers for you databases, which are in one of these packages:
20
21
* libpgsql-ruby for PostgreSQL
22
* libmysql-ruby
23
* libsqlite3-ruby
24
25 2 John Goerzen
h2. Configure your user environment
26
27 1 John Goerzen
As an individual user, edit your ~/.bashrc file and add a line such as this:
28
29 3 John Goerzen
<pre>
30
export GEM_PATH=$HOME/gems
31
</pre>
32 1 John Goerzen
33
Log out and back on.  Make sure your GEM_PATH is set:
34
35 3 John Goerzen
<pre>
36
echo $GEM_PATH
37
</pre>
38 1 John Goerzen
39
And make the directory for the gems:
40 2 John Goerzen
41 3 John Goerzen
<pre>
42
mkdir ~/gems
43
</pre>
44 1 John Goerzen
45 2 John Goerzen
Now, install rails:
46
47 3 John Goerzen
<pre>
48
gem install -i $GEM_PATH rails -y
49
</pre>
50 4 John Goerzen
51
Then proceed to the [[RedmineInstall]] instructions.
52
53 5 John Goerzen
If you will be running this under FastCGI or some other environment, make sure the GEM_PATH gets passed along.
54
55 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)_
56 7 Anonymous
57 4 John Goerzen
Thanks to Eric Davis for help with this procedure.