1.安装高版本的autoconf(2.60及以上)
2.安装ruby1.8.7
下载: svn co http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7
生成configure:执行autoconf
./configure:这时如果没有gcc编译器,则请安装
make:发现无yacc,使用yum install byacc安装
make install
3.安装rubygems1.7.2
下载:https://github.com/rubygems/rubygems/tarball/v1.7.2
安装:ruby setup.rb
4.安装ruby的zlib库
a.yum install zlib-devel
b.在ruby/ext/zlib执行:ruby extconf.rb
c.make&make install
4.安装rake0.8.7
gem install rake -v=0.8.7
5.安装rails
gem install rails -v=2.3.14
6.安装cmake
下载:http://www.cmake.org/files/v2.8/cmake-2.8.7.tar.gz
安装:./configure
make&make install
7.安装mysql(yum install ncurses-devel)
下载:http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.21.tar.gz/from/http://mysql.mirror.iweb.ca/
安装:
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-build specific instructions
# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
# Next command is optional
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server
8.安装RDoc
gem install rdoc
9.安装redmine 1.3
a. 创建redmine的mysql:create database redmine character set utf8;create user 'redmine'@'localhost' identified by 'my_password';grant all privileges on redmine.* to 'redmine'@'localhost';b. 复制redmine配置数据库的文件:复制redmine目录下config/database.yml.example
toconfig/database.yml
c.产生一个session store secret:rake generate_session_store
d.安装rdoc:gem install rdoc
e.安装openssl:yum install openssl-devel
找到ruby/ext目录下,执行ruby extconf.rb,make&make install
f.安装ruby的mysql库:gem install mysql
注意:需把mysql的include和lib拷贝到相应的项目下,否则安装会不成功。
g.生成redmine数据结构:
RAILS_ENV=production rake db:migrate
h.在数据里插入缺省redmine信息:
RAILS_ENV=production rake redmine:load_default_data
i.创建权限:
mkdir tmp public/plugin_assets chown -R redmine:redmine files log tmp public/plugin_assets chmod -R 755 files log tmp public/plugin_assets
10.安装敏捷插件:
下载:https://github.com/software-project/scrum-pm
安装(之前需gem install mini_magick,并且需修改mini_magick.gemspec中的时间格式,完事后,则在rubygems的安装目录下,执行ruby setup.rb install):
1. Install plugin `git clone git://github.com/software-project/scrum-pm.git vendor/plugins/redmine_sprints` 2. Install Attachment_fu `git clone git://github.com/technoweenie/attachment_fu.git vendor/plugins/attachment_fu` 3. Install Googlecharts gem `sudo gem install googlecharts` (note. uninstall GCharts if installed) 4. Run the usual plugin migration `rake db:migrate_plugins RAILS_ENV=production`
11.启动redmine
12、解决redmine新建问题异常。
在新建问题时,选择“功能”“支持”“错误”后,会出现多个输入框。为了解决这个BUG。需屏蔽app/views/issues/_form.html.erb文件中的(如下所示):
<%#= observe_field :issue_tracker_id, :url => { :action => :new, :project_id => @project, :id => @issue }, :update => :attributes, :with => "Form.serialize('issue-form')" %>
13。在sprint(敏捷)插件中,点击问题异常跳转问题。
在仪表版中,点击相关问题时,进入问题页面后,又会跳到仪表版。解决此问题方法如下。修改vendor/plugins/redmine_sprints/app/views/issue_sprints/_redirect_after_create.rhtml文件,把
<script type="text/javascript"> Event.observe(window, 'load', function(){ if(<%= issue.redirect_to.nil? ? "false" :"true" %>){ window.location= '<%= issue.redirect_to %>'; } }); </script>
改成
<script type="text/javascript"> Event.observe(window, 'load', function(){ if(<%= issue.redirect_to.nil? ? "false" :"true" %>){ window.location= '<%= issue.redirect_to %>';<% issue.update_attribute(:redirect_to, nil) unless issue.redirect_to.nil? %> } }); </script>