CentOS5.5上安装redmine(基于apache+mysql)

我不熟悉apache2和ROR,参考了许多文档,绕了许多弯路。
最重要的一份参考资料是
HowTo install Redmine on CentOS 5
http://www.redmine.org/projects/redmine/wiki/HowTo_install_Redmine_on_CentOS_5


参照上文的步骤,以下是些要点:
1.apache2是系统自带的。yum安装mysql5。这一步要注意也安装mysql-devel,不然后面bundle install mysql时会报错。
2.根据这个文章
http://www.redmine.org/projects/redmine/wiki/RedmineInstall
我要装的是redmine1.1.2. 我的版本组合是
ruby 1.8.7, rugygems 1.4.0, rails 2.3.5 ,rack 1.0.1
这里组合关系不要错,不然后面要花许多时间整理,还可能会失败。
3.先装ruby 1.8.7,再装rugygems 1.4.0,再装rails2.3.5,再装rack 1.0.1.
4.“Install Passenger”时,会安装自动安装rake0.8.7.
5."Configure Apache to host the documents"这一步,根据这个文章
http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Apache_to_run_Redmine
在httpd.conf最后加virtual host设置。
6.“Add the Bundler Boot and preinitializer code”这一步不用管。
7.“Create the Gemfile and register these gems in it”,Gemfile写成
source 'http://rubygems.org'

gem 'rake', '0.8.3'
gem "rack", "1.0.1"
gem "i18n", "0.4.2"
gem "rubytree", "0.5.2", :require => "tree"
gem "RedCloth", "~>4.2.3", :require => "redcloth" # for CodeRay
gem "mysql"
gem "coderay", "~>0.9.7"

8.“Set the production environment (optional)”这一步,指的是
redmine/conf/environment.rb。

备注:
1. http://geekystuff.net/2009/1/14/remove-all-ruby-gems
这个里面介绍的删除所有gems的技巧
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
很有用。
2.另外这篇文章也值得参考:
http://apps.hi.baidu.com/share/detail/30235554

猜你喜欢

转载自raver.iteye.com/blog/1011603