- Install Ruby 1.9.3-p194
- Download Redmine (redmine-2.1.2)
- Download MySQL install it (mysql-5.5.28-winx64.msi)
- 直接解压到C盘 然后安装在C盘 同时运行(Start Command Prompt with Ruby)
Redmine(redmine-2.1.2)
http://rubyforge.org/frs/download.php/76497/redmine-2.1.2.zip
MySQLinstall it (mysql-5.5.28-winx64.msi)
http://www.mysql.com/downloads/mirror.php?id=409777
Ruby1.9.3-p194
http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
gem install bundler
bundle install
Notice: Json Problem: You need to download DevKit on http://rubyinstaller.org/downloads/
Andyou need to run
cd <DEVKIT_INSTALL_DIR>
ruby dk.rb init
ruby dk.rb review
ruby dk.rb install
Toinstall the Json
Notice: RimageProblem: You can download iton http://www.imagemagick.org/script/binary-releases.php#windows
setCPATH=C:\Program Files\ImageMagick-6.7.7-Q16\includeset
set LIBRARY_PATH=C:\ProgramFiles\ImageMagick-6.7.7-Q16\lib
- Enter: bundle install
- with Redmine 1.4.x:
rake generate_session_store
•with Redmine 2.x:
rake generate_secret_token
- When you enter: rake redmine:load_default_data RAILS_ENV=production
从mysql官方http://dev.mysql.com/downloads/mysql下载 mysql-connector-c-noinstall-6.0.2-win32解压到e:/。注意根据自己的实际情况下载相对应的版本,这里使用非安装版。
or Ruby 1.9.2:
gem install mysql --platform=ruby ----with-mysql-dir=e:/mysql-connector-c-noinstall-6.0.2-win32for Ruby 1.9.3:(showing mysql2 variant)
gem pristine mysql2 ----with-mysql-config=e:\mysql-connector-c-noinstall-6.0.2-win32 这里我用64位的win7系统.
然后将 E:\mysql-connector-c-noinstall-6.0.2-win32\lib 目录下的 libmysql.dll 文件复制到 E:\RailsInstaller\Ruby1.9.3\bin目录下。
- Gem install activerecord-mysql2-adapter (Notice: In database.yml 中不能有 adapter: mysql 的 属性 不然很麻烦,需要全部变为adapter: mysql2 同时 也需要把host: localhost 变为 host: 127.0.0.1)
- 输入:rake db:migrate RAILS_ENV=production
- 输入:rake redmine:load_default_data RAILS_ENV=production
- 测试:
Test the installation by running WEBrick web server:
with Redmine 1.4.x:
ruby script/server webrick -e production
with Redmine 2.x:
ruby script/rails server webrick -e production
Use default administrator account to log in:
login: admin
password: admin
You can go to Admin & Settings to modify application settings.
Plugins installation
rakeredmine:plugins:migrate RAILS_ENV=production
UninstallingPlugins
rakedb:migrate_plugins RAILS_ENV=production