Install KO with Redmine-4.0.7 or redmine-4.1.1 on Centos 7.8
Added by user user over 4 years ago
Hi,
My environnment has no Internet access :
CentOS Linux release 7.8.2003 (Core)
yum install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel
yum install rh-ruby27
scl -l
httpd24 rh-php72 rh-ruby27
scl enable rh-ruby27 bash
ruby --version
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
which ruby
/opt/rh/rh-ruby27/root/usr/bin/ruby
gem -v
3.1.2
which gem
/opt/rh/rh-ruby27/root/usr/bin/gem
yum install mod_passenger
rpm -qa |egrep -i 'ruby|apache|mariadb'
rh-ruby27-rubygem-bigdecimal-2.0.0-128.el7.x86_64 mariadb-5.5.65-1.el7.x86_64 rh-ruby27-ruby-2.7.1-128.el7.x86_64 ruby-libs-2.0.0.648-36.el7.x86_64 rubygem-bigdecimal-1.2.0-36.el7.x86_64 mariadb-server-5.5.65-1.el7.x86_64 rh-ruby27-rubygem-psych-3.1.0-128.el7.x86_64 rubygem-daemon_controller-1.1.2-2.el7.noarch rubygem-rdoc-4.0.0-36.el7.noarch rh-ruby27-rubygem-io-console-0.5.6-128.el7.x86_64 rh-ruby27-2.7-2.el7.x86_64 rubygem-json-1.7.7-36.el7.x86_64 rh-ruby27-ruby-libs-2.7.1-128.el7.x86_64 rh-ruby27-rubygems-3.1.2-128.el7.noarch rubygems-2.0.14.1-36.el7.noarch rh-ruby27-runtime-2.7-2.el7.x86_64 rh-ruby27-rubygem-openssl-2.1.2-128.el7.x86_64 rubygem-rack-1.6.12-1.el7.noarch ruby-irb-2.0.0.648-36.el7.noarch ruby-augeas-0.5.0-1.el7.x86_64 libselinux-ruby-2.5-15.el7.x86_64 mariadb-libs-5.5.65-1.el7.x86_64 rh-ruby27-rubygem-json-2.3.0-128.el7.x86_64 rh-ruby27-rubygem-irb-1.2.3-128.el7.noarch rubygem-psych-2.0.0-36.el7.x86_64 rh-ruby27-rubygem-did_you_mean-1.4.0-128.el7.noarch rh-ruby27-rubygem-rdoc-6.2.1-128.el7.noarch rubygem-rake-0.9.6-36.el7.noarch ruby-2.0.0.648-36.el7.x86_64 mariadb-devel-5.5.65-1.el7.x86_64 rh-ruby27-rubygem-bundler-2.1.4-128.el7.noarch rh-ruby27-rubygem-racc-1.4.16-128.el7.x86_64 rubygem-io-console-0.4.2-36.el7.x86_64 ruby-shadow-1.4.1-23.el7.x86_64
I created a user and a database.
I changed the params into config/database.yml.
cd ../public
mv htaccess.fcgi.example htaccess.fcgi
mv dispatch.fcgi.example dispatch.fcgi
I 've tried to follow the wiki : https://www.redmine.org/projects/redmine/wiki/RedmineInstall
Step 4 - Dependencies installation
bundler is installed :
rpm -qa |egrep -i 'bundler'
rh-ruby27-rubygem-bundler-2.1.4-128.el7.noarch
From this command, ther is no error :
bundle config set without 'development test'
I created a file : redmine/Gemfile.local
# Gemfile.local gem 'puma'
Step 5 - Session store secret generation
bundle exec rake generate_secret_token
/opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/rubygems_ext.rb:17:in `remove_method': method `source' not defined in Gem::Specification (NameError) from /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/rubygems_ext.rb:17:in `<class:Specification>' from /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/rubygems_ext.rb:14:in `<module:Gem>' from /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/rubygems_ext.rb:13:in `<top (required)>' from /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler.rb:10:in `require_relative' from /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler.rb:10:in `<top (required)>' from /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/setup.rb:6:in `require_relative' from /opt/rh/rh-ruby27/root/usr/share/gems/gems/bundler-2.1.4/lib/bundler/setup.rb:6:in `<top (required)>' from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
RAILS_ENV=production bundle exec rake db:migrate
has the same errors.
I stopped my install right here.
When i access to the https://myserver/, i just get the list of the files from the directory ../redmine/public.
Any help would be appreciated.
NB : i've got the same error from the install of redmine-4.1.1.
Replies (4)
RE: Install KO with Redmine-4.0.7 or redmine-4.1.1 on Centos 7.8 - Added by user user over 4 years ago
rake generate_secret_token
rake aborted! cannot load such file -- bundler/setup /var/www/html/redmine-4.0.7-prd/config/boot.rb:4:in `<top (required)>' /var/www/html/redmine-4.0.7-prd/config/application.rb:1:in `<top (required)>' /var/www/html/redmine-4.0.7-prd/Rakefile:5:in `<top (required)>' (See full trace by running task with --trace)
RE: Install KO with Redmine-4.0.7 or redmine-4.1.1 on Centos 7.8 - Added by user user over 4 years ago
which ruby
/opt/rh/rh-ruby27/root/usr/bin/ruby
which rake
/bin/rake
gem list
*** LOCAL GEMS *** benchmark (default: 0.1.0) bigdecimal (2.0.0) bundler (2.1.4) cgi (default: 0.1.0) csv (default: 3.1.2) date (default: 3.0.0) dbm (default: 1.1.0) delegate (default: 0.1.0) did_you_mean (1.4.0) etc (default: 1.1.0) fcntl (default: 1.0.0) fiddle (default: 1.0.0) fileutils (default: 1.4.1) forwardable (default: 1.3.1) gdbm (default: 2.1.0) getoptlong (default: 0.1.0) io-console (0.5.6) ipaddr (default: 1.2.2) irb (1.2.3) json (2.3.0) logger (default: 1.4.2) matrix (default: 0.2.0) mutex_m (default: 0.1.0) net-pop (default: 0.1.0) net-smtp (default: 0.1.0) observer (default: 0.1.0) open3 (default: 0.1.0) openssl (2.1.2) ostruct (default: 0.2.0) prime (default: 0.1.1) pstore (default: 0.1.0) psych (3.1.0) racc (1.4.16) rdoc (6.2.1) readline (default: 0.0.2) readline-ext (default: 0.1.0) reline (default: 0.1.3) rexml (default: 3.2.3) rss (default: 0.2.8) sdbm (default: 1.0.0) singleton (default: 0.1.0) stringio (default: 0.1.0) strscan (default: 1.0.3) timeout (default: 0.1.0) tracer (default: 0.1.0) uri (default: 0.10.0) webrick (default: 1.6.0) yaml (default: 0.1.0) zlib (default: 1.1.0)
RE: Install KO with Redmine-4.0.7 or redmine-4.1.1 on Centos 7.8 - Added by user user over 4 years ago
So i installed rake :
yum install rh-ruby27-rubygem-rake
which rake
/opt/rh/rh-ruby27/root/usr/bin/rake
RE: Install KO with Redmine-4.0.7 or redmine-4.1.1 on Centos 7.8 - Added by user user over 4 years ago
rake generate_secret_token
rake aborted! cannot load such file -- bundler/setup /var/www/html/redmine-4.0.7-prd/config/boot.rb:4:in `<top (required)>' /var/www/html/redmine-4.0.7-prd/config/application.rb:1:in `<top (required)>' /var/www/html/redmine-4.0.7-prd/Rakefile:5:in `<top (required)>' (See full trace by running task with --trace)
Ok with the error message, i switched to ruby 2.6.
Right now, i got a different error message :
bundle exec rake generate_secret_token
Could not find gem 'rails (= 5.2.4.2)' in any of the gem sources listed in your Gemfile. Run `bundle install` to install missing gems.
Since i don't have the internet access, running the command is no use since it is trung to fetch source index from https://rubygems.org/
bundler install