当前位置: 代码迷 >> Windows >> redmine Windows装配
  详细解决方案

redmine Windows装配

热度:6740   发布时间:2013-02-26 00:00:00.0
redmine Windows安装

官方地址:http://www.redmine.org/

所需环境介绍:http://www.redmine.org/projects/redmine/wiki/RedmineInstall#Requirements

The required Ruby versions for a given Redmine version is:

Redmine versionSupported Ruby versionsRails version usedSupported RubyGems versions
current trunkruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7Rails 3.2.12RubyGems <= 1.8
2.2.3ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7Rails 3.2.12RubyGems <= 1.8
2.2.1ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7Rails 3.2.11RubyGems <= 1.8
2.2.0ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7Rails 3.2.9RubyGems <= 1.8
2.1.6ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7Rails 3.2.11RubyGems <= 1.8
2.1.[0-5]ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7Rails 3.2.8RubyGems <= 1.8
2.0.[3-4]ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7Rails 3.2.6RubyGems <= 1.8
2.0.2ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7Rails 3.2.5RubyGems <= 1.8
2.0.[0-1]ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7Rails 3.2.3RubyGems <= 1.8
1.4.6ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7Rails 2.3.15RubyGems <= 1.8
1.4.[0-5]ruby 1.8.7, 1.9.2, 1.9.3, jruby-1.6.7Rails 2.3.14RubyGems <= 1.8

我下载的redmine-2.2.3.zip版本进行安装。

下载rubygems-1.8.25.zip:http://files.rubyforge.vm.bytemark.co.uk/rubygems/

下载rails-ftw-v0.11-1.9.3-3.2.8.exe:http://railsftw.bryanbibat.net/

下载mysql-5.1.62-win32:http://dev.mysql.com/downloads/

下载DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe:https://github.com/oneclick/rubyinstaller/downloads/

下载RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip:http://files.rubyforge.vm.bytemark.co.uk/rmagick/

?

1.安装rails-ftw-v0.11-1.9.3-3.2.8.exe,全部勾上,我安装在D:\RailsFTW193盘。

2.解压redmine-2.2.3.zip到D:\redmine-2.2.3盘。

3.安装DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe。释放到D:\DevKit-tdm-32-4.5.2文件夹下面.

4.dos进入目录执行:

?

D:\>cd D:\DevKit-tdm-32-4.5.2

?

D:\DevKit-tdm-32-4.5.2>ruby dk.rb init

[INFO] found RubyInstaller v1.9.3 at D:/RailsFTW193

?

Initialization complete! Please review and modify the auto-generated

'config.yml' file to ensure it contains the root directories to all

of the installed Rubies you want enhanced by the DevKit.

?

D:\DevKit-tdm-32-4.5.2>ruby dk.rb install

[INFO] Updating convenience notice gem override for 'D:/RailsFTW193'

[INFO] Installing 'D:/RailsFTW193/lib/ruby/site_ruby/devkit.rb'

5.解压rubygems-1.8.25.zip到D:\rubygems-1.8.25,dos进入目录执行:

?

D:\rubygems-1.8.25>gem install bundler

Fetching: bundler-1.2.4.gem (100%)

Successfully installed bundler-1.2.4

1 gem installed

Installing ri documentation for bundler-1.2.4...

Installing RDoc documentation for bundler-1.2.4...

?

D:\rubygems-1.8.25>bundle install -without development test

bundle install requires at least 0 argument: "bundle install".

?

?6.解压RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip,运行ImageMagick-6.5.6-8-Q8-windows-dll.exe,install…C++勾选上。

7.dos执行gem install rmagick-2.12.0-x86-mswin32.gem。

?

?D:\ImageMagick-6.5.6-Q8>gem install rmagick-2.12.0-x86-mswin32.gem

Successfully installed rmagick-2.12.0-x86-mswin32

1 gem installed

Installing ri documentation for rmagick-2.12.0-x86-mswin32...

Installing RDoc documentation for rmagick-2.12.0-x86-mswin32...

?

dos执行gem liset就看到rmagick (2.12.0 mswin32)安装成功。如果列表里面有mysql2 (0.3.11 x86-mingw32)就不安装mysql2,否则就gem install mysql2

8.验证版本信息:

?

D:\ImageMagick-6.5.6-Q8>rails --version

Rails 3.2.8

?

D:\ImageMagick-6.5.6-Q8>rake --version

rake, version 0.9.2.2

?

执行bundle install

?

9.创建数据库redmine。

10.复制D:\redmine-2.2.3\config\database.yml.example重命名database.yml,红色是修改区,修改如下:

production:

? adapter: mysql2

? database: redmine

? host: localhost

? username: root

? password: cj19860811

? encoding: utf8

11.dos进入D:\redmine-2.2.3\后执行rake generate_secret_token,出现如下问题:

D:\redmine-2.2.3\config>rake generate_secret_token

(in D:/redmine-2.2.3)

←[31mCould not find gem 'rails (= 3.2.12) x86-mingw32' in the gems available on this machine.←[0m

←[33mRun `bundle install` to install missing gems.←[0m

?

D:\redmine-2.2.3\config>gem uninstall rails

Successfully uninstalled rails-3.2.8

?

D:\redmine-2.2.3\config>gem install rails -v=3.2.12

重新安装版本即可。这里要等一会儿。如果还有其他版本不对的都重新安装一次。

?

D:\redmine-2.2.3\config>rake generate_secret_token

(in D:/redmine-2.2.3)

←[31mCould not find gem 'rmagick (>= 2.0.0) x86-mingw32' in the gems available on this machine.←[0m

←[33mRun `bundle install` to install missing gems.←[0m

?

D:\redmine-2.2.3\config>gem uninstall rmagick

Remove executables:

? ? ? ? wmf2eps.exe, wmf2fig.exe, wmf2gd.exe, wmf2svg.exe

?

in addition to the gem? [Yn] ?y

Removing wmf2eps.exe

Removing wmf2fig.exe

Removing wmf2gd.exe

Removing wmf2svg.exe

Successfully uninstalled rmagick-2.12.0-x86-mswin32

?

下载RMagick-2.0.0-ImageMagick-6.3.7-8-Q8.zip,重复之前安装2.12.0的操作。

最后别忘了执行:bundle install --without development test rmagick

D:\redmine-2.2.3\config>bundle install --without development test rmagick

Using rake (10.0.3)

Using i18n (0.6.1)

Using multi_json (1.6.1)

Using activesupport (3.2.12)

Using builder (3.0.0)

Using activemodel (3.2.12)

Using erubis (2.7.0)

Using journey (1.0.4)

Using rack (1.4.5)

Using rack-cache (1.2)

Using rack-test (0.6.2)

Using hike (1.2.1)

Using tilt (1.3.3)

Using sprockets (2.2.2)

Using actionpack (3.2.12)

Using mime-types (1.21)

Using polyglot (0.3.3)

Using treetop (1.4.12)

Using mail (2.4.4)

Using actionmailer (3.2.12)

Using arel (3.0.2)

Using tzinfo (0.3.35)

Using activerecord (3.2.12)

Using activeresource (3.2.12)

Using coderay (1.0.8)

Using rack-ssl (1.3.3)

Using json (1.7.7)

Using rdoc (3.12.1)

Using thor (0.17.0)

Using railties (3.2.12)

Using jquery-rails (2.0.3)

Using mysql2 (0.3.11)

Using net-ldap (0.3.1)

Using pg (0.14.1)

Using ruby-openid (2.1.8)

Using rack-openid (1.3.1)

Using bundler (1.2.4)

Using rails (3.2.12)

Using sqlite3 (1.3.7)

Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

?

D:\redmine-2.2.3\config>rake generate_secret_token

(in D:/redmine-2.2.3)

终于没有错了。

12.创建数据库结构信息。

D:\redmine-2.2.3\config>SET RAILS_ENV=production

D:\redmine-2.2.3\config>rake db:migrate

此处省略......

D:\redmine-2.2.3\config>rake redmine:load_default_data

(in D:/redmine-2.2.3)

选择zh

Select language: ar, bg, bs, ca, cs, da, de, el, en, en-GB, es, et, eu, fa, fi, fr, gl, he, hr, hu,

id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sq, sr, sr-YU, sv, th, tr, uk

, vi, zh, zh-TW [en] zh

====================================

Default configuration data loaded.

13.启动服务。

D:\redmine-2.2.3\config>rails server

=> Booting WEBrick

=> Rails 3.2.12 application starting in production on http://0.0.0.0:3000

=> Call with -d to detach

=> Ctrl-C to shutdown server

14.打开http://localhost:3000/就可以看到redmine的窗口了。 用账户admin 密码admin登录 进入系统之后修改语言为中文在myaccount和setting里面修改。?

?

如果你闲上面的安装太过复杂,可以去这里:http://bitnami.org/zh_cn/stack/redmine

下载对应版本进行安装。

?

  相关解决方案
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!
 
  • 最近登录:Sat May 27 14:21:54 CST 2017
  • 最近登录:Sat May 27 14:21:54 CST 2017
  • 最近登录:Sat May 27 14:21:54 CST 2017
  • 最近登录:Sat May 27 14:21:54 CST 2017
  • 最近登录:Sat May 27 14:21:54 CST 2017