HowTo Install Redmine in a home directory on Debian
Version 8 (Jason Sjöbeck, 2009-07-12 20:49)
| 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 | 6 | John Goerzen | You'll also want Ruby drivers for you databases, which are in one of these packages: |
| 14 | 6 | John Goerzen | |
| 15 | 6 | John Goerzen | * libpgsql-ruby for PostgreSQL |
| 16 | 6 | John Goerzen | * libmysql-ruby |
| 17 | 6 | John Goerzen | * libsqlite3-ruby |
| 18 | 6 | John Goerzen | |
| 19 | 2 | John Goerzen | h2. Configure your user environment |
| 20 | 2 | John Goerzen | |
| 21 | 1 | John Goerzen | As an individual user, edit your ~/.bashrc file and add a line such as this: |
| 22 | 1 | John Goerzen | |
| 23 | 3 | John Goerzen | <pre> |
| 24 | 3 | John Goerzen | export GEM_PATH=$HOME/gems |
| 25 | 3 | John Goerzen | </pre> |
| 26 | 1 | John Goerzen | |
| 27 | 1 | John Goerzen | Log out and back on. Make sure your GEM_PATH is set: |
| 28 | 1 | John Goerzen | |
| 29 | 3 | John Goerzen | <pre> |
| 30 | 3 | John Goerzen | echo $GEM_PATH |
| 31 | 3 | John Goerzen | </pre> |
| 32 | 1 | John Goerzen | |
| 33 | 1 | John Goerzen | And make the directory for the gems: |
| 34 | 2 | John Goerzen | |
| 35 | 3 | John Goerzen | <pre> |
| 36 | 3 | John Goerzen | mkdir ~/gems |
| 37 | 3 | John Goerzen | </pre> |
| 38 | 1 | John Goerzen | |
| 39 | 2 | John Goerzen | Now, install rails: |
| 40 | 2 | John Goerzen | |
| 41 | 3 | John Goerzen | <pre> |
| 42 | 3 | John Goerzen | gem install -i $GEM_PATH rails -y |
| 43 | 3 | John Goerzen | </pre> |
| 44 | 4 | John Goerzen | |
| 45 | 4 | John Goerzen | Then proceed to the [[RedmineInstall]] instructions. |
| 46 | 4 | John Goerzen | |
| 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 | 5 | John Goerzen | |
| 49 | 8 | Jason Sjöbeck | _(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 | Jason Sjöbeck | |
| 51 | 4 | John Goerzen | Thanks to Eric Davis for help with this procedure. |