Chinaunix首页 | 论坛 | 博客
  • 博客访问: 39412
  • 博文数量: 7
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 70
  • 用 户 组: 普通用户
  • 注册时间: 2014-08-08 15:40
文章分类

全部博文(7)

文章存档

2016年(7)

我的朋友

分类: LINUX

2016-01-25 19:38:10

先安装 ruby包管理器


  1. curl -sSL | bash -s stable
安装完成后需要 source /etc/profile.d/rvm.sh

查看官方版本需求
Redmine version Supported Ruby versions Rails version used
current trunk ruby 1.9.3, 2.0.0, 2.1, 2.2 Rails 4.2
3.0 ruby 1.9.3, 2.0.0, 2.1, 2.2 Rails 4.2
2.6 ruby 1.8.7, 1.9.2, 1.9.3, 2.0.0, 2.1, 2.2, jruby-1.7.6 Rails 3.2


先查看版本


  1. rvm list known
  2. # MRI Rubies
  3. [ruby-]1.8.6[-p420]
  4. [ruby-]1.8.7[-head] # security released on head
  5. [ruby-]1.9.1[-p431]
  6. [ruby-]1.9.2[-p330]
  7. [ruby-]1.9.3[-p551]
  8. [ruby-]2.0.0[-p648]
  9. [ruby-]2.1[.8]
  10. [ruby-]2.2[.4]
  11. [ruby-]2.3[.0]
  12. [ruby-]2.2-head


安装2.2版本
rvm install 2.2

安装完成后使用
rvm use 2.2
然后使用 ruby -v 查看ruby的版本

接着 安装rails
gem install rails -V

在安装过程中
可能会出现
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)


  1. gem sources --remove https://rubygems.org/
  2. gem sources -a https://ruby.taobao.org/
  3. gem sources -l
替换掉源
安装完成后使用
rails -v 查看版本信息
Rails 4.2.5 应该可以吧 --。


  1. git clone https://github.com/redmine/redmine


然后跟着官网的来


  1. gem install bundler
  2. bundle install --without development test
第二部可能出现
An error occurred while installing rmagick (2.15.4), and Bundler cannot continue. Make sure that `gem install rmagick -v '2.15.4'` succeeds before bundling.

用下面的就好了

  1. apt-get install imagemagick libmagickcore-dev libmagickwand-dev

剩下的就跟着


  1. https://www.redmine.org/projects/redmine/wiki/RedmineInstall




阅读(1626) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~