您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息
三六零分类信息网 > 甘孜分类信息网,免费分类信息发布

xp下安装redmine 2.4.3

2024/12/10 7:54:01发布11次查看
第一步,软件下载 1. 下载 railsinstaller 下载地址: http://files.rubyforge.vm.bytemark.co.uk/railsinstaller/railsinstaller-2.2.1.exe railsinstaller 大大简化了 rails 的安装。除了 windows 下面的外,还有 imac 下面的安装包。 对应的官网: http:/
第一步,软件下载
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: mysql2 database: redmine host: localhost username: root password: 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 rmagickusing 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=productionrake db:migrate
3:导入初始化数据
set rails_env=productionset redmine_lang=zhrake 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
甘孜分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录