xp下安装redmine 2.4.3
第一步,軟件下載
1. 下載railsinstaller
下載地址:http://files.rubyforge.vm.bytemark.co.uk/railsinstaller/railsinstaller-2.2.1.exe
railsinstaller大大簡化了rails的安裝。除了windows下面的外,還有iMac下面的安裝包。
對應的官網:http://railsinstaller.org/en
該版本包括下面內容:
Ruby 1.9.3
Rails 3.2
Bundler
Git
Sqlite
TinyTDS
SQL Server Support
DevKit
2. 下載ImageMagick,這個是圖型生成工具,redmine用于生成pdf等內容,也可以不安裝。安裝說明在這里http://www.redmine.org/projects/redmine/wiki/HowTo_install_rmagick_gem_on_Windows
這次下載安裝的版本是ImageMagick-6.8.8-6-Q8-x86-dll.exe,
下載地址是:http://www.imagemagick.org/download/binaries/ImageMagick-6.8.8-6-Q8-x86-dll.exe
?gem文件下載:http://download.csdn.net/detail/wind520/6931051
3、redmine的文件,這里下載的是最新版本redmine2.4.3?,
發布版本下載列表地址是:http://www.redmine.org/projects/redmine/wiki/Download
我用的版本的下載地址是:http://download.csdn.net/detail/wind520/6921315
?
第二步:安裝
1:安裝railsinstaller,如果不需要選擇目錄,就一路安裝下去就可以了
2:安裝ImageMagick,但是在安裝選項的時候,要注意改一下選擇,如下圖
In the?Select Additional Tasks?page of the wizard, make sure that both?Add application directory to your system path?and?Install development headers and libraries for C and C++?options are checked:
?
就是第二項和第四項勾上
?
3:解壓redmine
放在E:\work\redmine-2.4.3
?
第三步:mysql準備
沒有安裝mysql,先安裝mysql5.6
1:把libmysql.dll復制到E:\work\RailsInstaller\Ruby1.9.3\bin(RailsInstaller的安裝目錄里面)
2:創建數據庫
CREATE DATABASE redmine CHARACTER SET utf8;3:修改redmine連接數據庫文件
redmine目錄下的config/database.yml.example?改為config/database.yml
?
第6行開始
production:adapter: mysql2database: redminehost: localhostusername: rootpassword: my_password第四步:安裝依賴文件
1:安裝rmagick
gem install E:\work\rmagick-2.13.1-x86-mingw32.gem ?2:安裝Bundler
gem install bundler?
3: 安裝其他
在redmine目錄下執行
bundle install --without development test E:\work\redmine-2.4.3>bundle install --without development test rmagick Using rake (10.1.1) Using i18n (0.6.9) Using multi_json (1.8.4) Using activesupport (3.2.16) Using builder (3.0.0) Using activemodel (3.2.16) 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.3) Using tilt (1.4.1) Using sprockets (2.2.2) Using actionpack (3.2.16) Using mime-types (1.25.1) Using polyglot (0.3.3) Using treetop (1.4.15) Using mail (2.5.4) Using actionmailer (3.2.16) Using arel (3.0.3) Using tzinfo (0.3.38) Using activerecord (3.2.16) Using activeresource (3.2.16) Using coderay (1.1.0) Using rack-ssl (1.3.3) Using json (1.8.1) Using rdoc (3.12.2) Using thor (0.18.1) Using railties (3.2.16) Using jquery-rails (2.0.3) Using mysql2 (0.3.15) Using net-ldap (0.3.1) Using ruby-openid (2.3.0) Using rack-openid (1.4.2) Using bundler (1.5.3) Using rails (3.2.16) Your bundle is complete! Gems in the groups development, test and rmagick were not installed. Use `bundle show [gemname]` to see where a bundled gem is installed.
已經安裝的會顯示出來,沒安裝的會自動下載安裝
?
?
?
第五步:數據庫相關
1:生成 Session 存儲密鑰
rake generate_secret_token2:創建表
set RAILS_ENV=production rake db:migrate3:導入初始化數據
set RAILS_ENV=production set REDMINE_LANG=zh rake redmine:load_default_data第六步:測試
ruby script/rails server webrick -e production E:\work\redmine-2.4.3>ruby script/rails server webrick -e production => Booting WEBrick => Rails 3.2.16 application starting in production on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2014-02-15 22:42:20] INFO WEBrick 1.3.1 [2014-02-15 22:42:21] INFO ruby 1.9.3 (2013-02-22) [i386-mingw32] [2014-02-15 22:42:21] INFO WEBrick::HTTPServer#start: pid=4200 port=3000
成功!!
?
--------------------------------------------
安裝后的環境:
Environment:
? Redmine version??????????????? 2.4.3.stable
? Ruby version?????????????????? 1.9.3-p392 (2013-02-22) [i386-mingw32]
? Rails version????????????????? 3.2.16
? Environment??????????????????? production
? Database adapter?????????????? Mysql2
SCM:
? Subversion???????????????????? 1.7.5
? Git??????????????????????????? 1.8.1
?
參考http://www.redmine.org/projects/redmine/wiki/RedmineInstall
http://www.cppblog.com/zdhsoft/archive/2013/10/17/redmine.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的xp下安装redmine 2.4.3的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: redmine2.4.2 插件安装
- 下一篇: jasig CAS实现单点登录(数据库认