Redmine是用Ruby开发的基于web的项目管理软件,是用ROR框架开发的一套跨平台项目管理系统。
ruby下载:https://rubyforge.org/projects/rubyinstaller/ 同时下载RubyInstaller和Development Kit
redmine下载:https://rubyforge.org/projects/redmine
安装过程参考官方文档:http://www.redmine.org/projects/redmine/wiki/RedmineInstall
[table]
|Redmine version|Supported Ruby versions|Rails version used|
|current trunk|ruby 1.8.72-2.0.01|Rails 3.2.13|
|2.3.0|ruby 1.8.72-2.0.01|Rails 3.2.13|
|2.2.4|ruby 1.8.72-1.9.3|Rails 3.2.13|
[/table]
1、安装ruby
安装rails: gem install rails -v=3.2.13
安装mysql
2、创建空的数据库redmine,
CREATE DATABASE redmine CHARACTER SET utf8;
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
mysql服务器安装成功之后,在"开始"面板的Ruby2.0.0----Start Command Project with Buby的DOS窗口继续输入
gem install mysql2
gem install activerecord-mysql-adapter(安装2.0以上版本需要)
注意:ruby 1.9 (adapter must be set to mysql2)
一些情况下需要拷贝libmysql.dll文件到ruby/bin目录. 下载地址:http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll.
gem install mysql2 可能会遇到问题“ERROR: Failed to build gem native extension.”
解决办法如下:
subst X: "C:\Program Files\MySQL\MySQL Server 5.6"
gem install mysql2 --platform=ruby -- --with-mysql-dir=X: --with-mysql-lib=X:\lib\opt
3、安装devkit
在DOS下进入devkit的安装目录 键入如下语句
ruby dk.rb init
ruby dk.rb install
4、安装redmine
在redmine目录下,将config/database.yml.example修改为config/database.yml,对该文件作一些改动,以配置"production"环境的数据库设置
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: my_password
redmine2.0以后版本的安装:
在DOS窗口下进入redmine的安装目录,输入以下命令(这些命令具体作用,请查询官方文档http://www.redmine.org/projects/redmine/wiki/RedmineInstall)
bundle install --without development test rmagick(每次修改config/database.xml后,都须重新运行该命令)
rake generate_secret_token
set RAILS_ENV=production
rake db:migrate
rake redmine:load_default_data RAILS_ENV=production 键入zh
ruby script/rails server webrick -e production
在网页中输入:http://localhost:3000/,查看一下是否会出现redmine界面。
ruby下载:https://rubyforge.org/projects/rubyinstaller/ 同时下载RubyInstaller和Development Kit
redmine下载:https://rubyforge.org/projects/redmine
安装过程参考官方文档:http://www.redmine.org/projects/redmine/wiki/RedmineInstall
[table]
|Redmine version|Supported Ruby versions|Rails version used|
|current trunk|ruby 1.8.72-2.0.01|Rails 3.2.13|
|2.3.0|ruby 1.8.72-2.0.01|Rails 3.2.13|
|2.2.4|ruby 1.8.72-1.9.3|Rails 3.2.13|
[/table]
1、安装ruby
安装rails: gem install rails -v=3.2.13
安装mysql
2、创建空的数据库redmine,
CREATE DATABASE redmine CHARACTER SET utf8;
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
mysql服务器安装成功之后,在"开始"面板的Ruby2.0.0----Start Command Project with Buby的DOS窗口继续输入
gem install mysql2
gem install activerecord-mysql-adapter(安装2.0以上版本需要)
注意:ruby 1.9 (adapter must be set to mysql2)
一些情况下需要拷贝libmysql.dll文件到ruby/bin目录. 下载地址:http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll.
gem install mysql2 可能会遇到问题“ERROR: Failed to build gem native extension.”
解决办法如下:
subst X: "C:\Program Files\MySQL\MySQL Server 5.6"
gem install mysql2 --platform=ruby -- --with-mysql-dir=X: --with-mysql-lib=X:\lib\opt
3、安装devkit
在DOS下进入devkit的安装目录 键入如下语句
ruby dk.rb init
ruby dk.rb install
4、安装redmine
在redmine目录下,将config/database.yml.example修改为config/database.yml,对该文件作一些改动,以配置"production"环境的数据库设置
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: my_password
redmine2.0以后版本的安装:
在DOS窗口下进入redmine的安装目录,输入以下命令(这些命令具体作用,请查询官方文档http://www.redmine.org/projects/redmine/wiki/RedmineInstall)
bundle install --without development test rmagick(每次修改config/database.xml后,都须重新运行该命令)
rake generate_secret_token
set RAILS_ENV=production
rake db:migrate
rake redmine:load_default_data RAILS_ENV=production 键入zh
ruby script/rails server webrick -e production
在网页中输入:http://localhost:3000/,查看一下是否会出现redmine界面。