先安装 ruby包管理器
-
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
|
先查看版本
-
rvm list known
-
# MRI Rubies
-
[ruby-]1.8.6[-p420]
-
[ruby-]1.8.7[-head] # security released on head
-
[ruby-]1.9.1[-p431]
-
[ruby-]1.9.2[-p330]
-
[ruby-]1.9.3[-p551]
-
[ruby-]2.0.0[-p648]
-
[ruby-]2.1[.8]
-
[ruby-]2.2[.4]
-
[ruby-]2.3[.0]
-
[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)
-
gem sources --remove https://rubygems.org/
-
gem sources -a https://ruby.taobao.org/
-
gem sources -l
替换掉源
安装完成后使用
rails -v 查看版本信息
Rails 4.2.5 应该可以吧 --。
-
git clone https://github.com/redmine/redmine
然后跟着官网的来
先
-
gem install bundler
-
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.
-
apt-get install imagemagick libmagickcore-dev libmagickwand-dev
剩下的就跟着
-
https://www.redmine.org/projects/redmine/wiki/RedmineInstall
阅读(1736) | 评论(0) | 转发(0) |