或者网址:https://www.redmineplugins.cn/projects/1/plugin_blocks/2?tab=changelog
Supported Redmine versions: 4.1 - 2.6
1、首先确认下自己ruby版本,进行bundle需要>=2.3.0,所以我们需要升级一下,此处我们升级到2.4.5,[截图在下面]
yum install -y centos-release-scl-rh
ruby 2.4.6p354 (2019-04-01 revision 67394) [x86_64-linux]
5、将插件redmine_agile-1_5_3-light.zip 复制到/opt/redmine-4.1.1-2/apps/redmine/htdocs/plugins目录下,解压
-rw-rw-r--. 1 root daemon 31 4月 7 01:00 README
-rw-r--r--. 1 root root 157530 7月 20 15:17 redmine_agile-1_5_3-light.zip
[root@localhost plugins]# unzip redmine_agile-1_5_3-light.zip
6、进入/opt/redmine-4.1.1-2/目录下,运行use_redmine进入bash环境下
[root@localhost redmine-4.1.1-2]# cd /opt/redmine-4.1.1-2/
[root@localhost redmine-4.1.1-2]# ./use_redmine
7、下面如果可以直接运行 bundle install --without development test --no-deployment但是可能会报一些错,所以此时我们直接用命令sudo yum install -y gcc ruby-devel zlib-devel libxml2 libxml2-devel libxslt libxslt-devel make,然后进入apps/redmine/htdocs/目录下,执行bundle install --without development test --no-deployment
bash-4.2# bundle install --without development test --no-deployment
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set without 'development test'`, and stop using this flag
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
bash-4.2# sudo yum install -y gcc ruby-devel zlib-devel libxml2 libxml2-devel libxslt libxslt-devel make
bash-4.2# cd apps/redmine/htdocs/
bash-4.2# bundle install --without development test --no-deployment
bash-4.2# bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production