日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

xp下安装redmine 2.4.3

發布時間:2024/9/30 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

3redmine的文件,這里下載的是最新版本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_token

2:創建表

set RAILS_ENV=production rake db:migrate

3:導入初始化數據

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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。