redmine Windows裝配

原文:http://www.myexception.cn/windows/1219064.htmlhtml

 

redmine Windows安裝mysql

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

所需環境介紹:http://www.redmine.org/projects/redmine/wiki/RedmineInstall#Requirementsgit

The required Ruby versions for a given Redmine version is:github

Redmine version Supported Ruby versions Rails version used Supported RubyGems versionssql

Redmine version Supported Ruby versions Rails version used
current trunk ruby 1.8.72, 1.9.2, 1.9.3, 2.0.01, jruby-1.6.7, jruby-1.7.2 Rails 3.2.13
2.3.0 ruby 1.8.72, 1.9.2, 1.9.3, 2.0.01, jruby-1.6.7, jruby-1.7.2 Rails 3.2.13
2.2.4 ruby 1.8.72, 1.9.2, 1.9.3, jruby-1.6.7 Rails 3.2.13

我下載的redmine-2.2.3.zip版本進行安裝。數據庫

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

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

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

下載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,所有勾上,我安裝在E:\RailsFTW193盤。

2.解壓redmine-2.4.1.zip到E:\redmine-2.4.1盤。

3.安裝DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe。釋放到E:\DevKit-tdm-32-4.5.2文件夾下面.

4.dos進入目錄執行:

 C:\>E:

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

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是RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip的解壓目錄,而非安裝目錄

 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

下載對應版本進行安裝。

相關文章
相關標籤/搜索