2013/11/11

Redmine 2.3.3 Install on Windows

主要參考文件

http://www.redmine.org/projects/redmine/wiki/RedmineInstall

 

安裝步驟如下:

1.Ruby 1.9.3

2.Ruby DevKit (Ruby 1.8.6 to 1.9.3: tdm-32-4.5.2)<==不同版本配不同的DevKit

3.Rails 3.2.13

4.Redmine 2.3.3

 

遇到的問題:

 

Q1.無法連外網,要使用 HTTP_PROXY ,怎麼做

Q2.無法使用 HTTPS 連至 https://rubygems.org/ ,怎麼辦?

Q3.好用的 Plugin 有那些?

 

 

1.Ruby 1.9.3

The required Ruby versions for a given Redmine version is:

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

 

Ruby 1.9.3-p448

 

2.Ruby DevKit (Ruby 1.8.6 to 1.9.3: tdm-32-4.5.2)<==不同版本配不同的DevKit

 

3.Rails 3.2.13

 

gem install rdoc

gem install rails -v=3.2.13

gem install bundler

 

D:\redmine-2.3.3>rake generate_secret_token
[31mCould not find gem 'nokogiri (< 1.6.0) x86-mingw32' in the gems available o
n this machine.[0m
[33mRun `bundle install` to install missing gems.[0m

 

 

gem install nokogiri -v=1.5.10

 

D:\redmine-2.3.3>rake generate_secret_token
[31mCould not find gem 'rmagick (>= 2.0.0) x86-mingw32' in the gems available o
n this machine.[0m
[33mRun `bundle install` to install missing gems.[0m

 

 

set CPATH=”C:\Program Files (x86)\ImageMagick-6.8.7-Q16\include”
set LIBRARY_PATH=C:\Program Files (x86)\ImageMagick-6.8.7-Q16\lib

 

D:\redmine-2.3.3>bundle install --without development test rmagick
Fetching source index from https://rubygems.org/
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification

information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect wit
using SSL, edit your Gemfile sources and change 'https' to 'http'.

 

Notepad.exe Edit Gemfile

source 'http://rubygems.org'

 

 

D:\redmine-2.3.3>gem install rmagick
ERROR:  Error installing rmagick:
        The 'rmagick' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

 

download DevKit & run devkitvars.bat to add PATH

D:\redmine-2.3.3>d:\share\RubyDevKit\devkitvars.bat

For use with Ruby 1.8.7 and 1.9.3:http://rubyinstaller.org/downloads/

 

gem install rmagick --platform=ruby -- --with-opt-lib=c:/ImageMagick/lib --with-opt-include=c:/ImageMagick/include

 

D:\redmine-2.3.3>rake generate_secret_token
[31mCould not find gem 'jquery-rails (~> 2.0.2) x86-mingw32' in t
ble on this machine.[0m
[33mRun `bundle install` to install missing gems.[0m

 

 

 

Q1.無法連外網,要使用 HTTP_PROXY ,怎麼做?

SET HTTP_PROXY=http://<ip>:<port>

 

 image

Q2.無法使用 HTTPS 連至 https://rubygems.org/ ,怎麼辦?

Fetching source index from https://rubygems.org/
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification

information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect wit
using SSL, edit your Gemfile sources and change 'https' to 'http'.

 

Notepad.exe Edit Gemfile

source 'http://rubygems.org'

 

Q3.好用的 Plugin 有那些?

 

剪貼簿貼上

https://github.com/peclik/clipboard_image_paste

RedmineCRM:Check List

http://redminecrm.com/projects/checklist/pages/1

 

http://redminecrm.com/pages/plugins

 

Q4.如何 Run as Windows Service

 

HowTo run Redmine as a Windows service (win32-service + taskill approach)

 

sc create redmine binPath= "C:\Ruby193\bin\rubyw -C D:\redmine\ service.rb"

 

 

參考連結

 

在 Windows 上安裝 Redmine 2.3.0 的筆記

http://crboy.logdown.com/posts/141615-install-redmine-on-windows

在 Windows 架設 Redmine 專案管理平台的安裝設定筆記

http://www.imagemagick.org/script/binary-releases.php#windows

沒有留言: