Reference: http://www.redmine.org/projects/redmine/wiki/RedmineInstall
InstallRedmine 1.2.1Steps:
1. Download Ruby 1.8.7. : Https://rubyforge.org/frs? Group_id = 167
2. Download rubygems 1.6.2. : Http://rubyforge.org/frs? Group_id = 126
Install rubygems
Ruby setup. Rb
3. Install rails 2.3.11
gem install rails -v=2.3.11
4. Install rack 1.1.1
Gem install rack-V = 1.1.1
5. Verify the rails version rake.
Rails -- version
Rake -- version
Rails must be 2.3.11
Rake must be 0.8.7
6. Install MySQL 5.0 or later and install the MySQL plug-in using gem.
Gem install MySQL
8. Download redmine 1.2.1 and decompress it.
9. Create an empty database and use the MySQL Console
Create Database redmine Character Set utf8;
Create user 'redmine '@ 'localhost' identified by 'my _ password ';
Grant all privileges on redmine. * To 'redmine '@ 'localhost ';
10. Copyconfig/database.yml.example
IsConfig/database. yml and set the production content
Production:
Adapter: MySQL
Database: redmine
HOST: localhost
Username: redmine
Password: my_password
11. Open the console (CMD), go to the redmine directory, and enter the command to generate the session store secret.
gem install -v=0.4.2 i18n
rake generate_session_store
12. Copy libmysql. DLL to the ruby bin directory and create the database structure.
SET RAILS_ENV=production
rake db:migrate
13. Insert default data
rake redmine:load_default_data
14. Test the installation by running webrick Web Server:
ruby script/server webrick -e production
15. use default Administrator Account to log in:
Login: Admin
Password: Admin
1. MySQL: Error: Query: not connected when rake DB: migrate
This problem occurs because the libmysql. dll file in MySQL 5.1.3 and later cannot be properly connected to rails. Therefore, you only need to replace an old version of libmysql. dll file. Download the old version libmysql. dll and put it in the ruby bin directory.
2. Rake DB: rake/rdoctask is deprecated. Use rdoc/task instead
The rake version must be 0.8.7.
Use rake -- version to view the version. If it is not 0.8.7
Use gem uninstall rake to uninstall
Run the gem install rake-V = 0.8.7 command to install the SDK.