First off, to get emerge -av redmine to run at all, I had to add a lot to /etc/portage/package.keywords (see attached code 2).
I also added passenger and imagemagick useflags.
Then
# emerge --config "=www-apps/redmine-2.4.6"
fail with what turned out to be a missing Gemfile.
I extracted the file manually from the tarball emerge had downloaded at install.
Then I ran
# emerge --config "=www-apps/redmine-2.4.6"
again. Then it failed with a message looking like
So I run* Generating a session store secret.
Could not find rake-10.1.1 in any of the sources
Run `bundle install` to install missing gems.
* ERROR: www-apps/redmine-2.4.6::gentoo failed (config phase):
* (no error message)
# bundle install
and get a warning it should not be run as root. So I abort and run
# sudo -g redmine -u redmine bundle install
Then again
# emerge --config "=www-apps/redmine-2.4.6"
returning the same error.
#gem list
show that rake 10.4.2 and 0.9.6 is installed, but not 10.1.1.
So I ran
# gem install rake -v '10.1.1'
And another try with
# emerge --config "=www-apps/redmine-2.4.6"
returning the same error, but this time with another gem, multi_json-1.11.0
This gem was also installed by bundle, but a newer version. So, I install that older version it asks for.
And so it goes - emerge --config asks for an older gem version than what is installed, I install that version, and it asks for an older version of another gem. I went through this loop, what feels like 50 gems before the error changed.
The new error is:
How do I move on from here? I kind of get the feeling I'm not on the right track at all!?# emerge --config "=www-apps/redmine-2.4.6"
Configuring pkg...
*
* Initializing database.
*
* Generating a session store secret.
rake aborted!
Gem::LoadError: You have already activated rake 10.4.2, but your Gemfile requires rake 10.1.1. Prepending `bundle exec` to your command may solve this.
/var/lib/redmine/config/boot.rb:6:in `<top (required)>'
/var/lib/redmine/config/application.rb:1:in `<top (required)>'
/var/lib/redmine/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
----------------------------------
Code1: Added to /etc/portage/package.use
Code: Select all
www-apps/redmine passenger imagemagickCode: Select all
=dev-ruby/rack-1.6.1 ~amd64
=app-eselect/eselect-rails-0.20 ~amd64
=www-apps/redmine-2.4.6 ~amd64
=dev-ruby/hike-1.2.3-r1 ~amd64
=dev-ruby/rack-cache-1.2-r1 ~amd64
=dev-ruby/treetop-1.5.3 ~amd64
=dev-ruby/bcrypt-ruby-3.1.10 ~amd64
=dev-ruby/actionpack-3.2.21 ~amd64
=dev-ruby/jquery-rails-4.0.3 ~amd64
=dev-ruby/rack-1.4.5-r3 ~amd64
=dev-ruby/uglifier-2.7.1 ~amd64
=dev-ruby/rails-3.2.21 ~amd64
=dev-ruby/builder-3.0.4-r1 ~amd64
=dev-ruby/tzinfo-1.2.2 ~amd64
=dev-ruby/mail-2.5.4 ~amd64
=dev-ruby/loofah-2.0.2 ~amd64
=dev-ruby/activeresource-3.2.21 ~amd64
=dev-ruby/activesupport-4.2.1 ~amd64
=dev-ruby/sprockets-2.2.3 ~amd64
=dev-ruby/polyglot-0.3.5 ~amd64
=dev-ruby/i18n-0.6.11 ~amd64
=dev-ruby/activerecord-3.2.21 ~amd64
=dev-ruby/rack-test-0.6.3 ~amd64
=dev-ruby/actionview-4.2.1 ~amd64
=dev-ruby/rails-deprecated_sanitizer-1.0.3 ~amd64
=dev-ruby/rails-html-sanitizer-1.0.2 ~amd64
=dev-ruby/actionpack-4.2.1 ~amd64
=dev-ruby/sass-rails-3.2.6 ~amd64
=dev-ruby/i18n-0.7.0 ~amd64
=dev-ruby/railties-3.2.21 ~amd64
=dev-ruby/activemodel-3.2.21 ~amd64
=dev-ruby/journey-1.0.4-r1 ~amd64
=dev-ruby/mysql2-0.3.18 ~amd64
=dev-ruby/rack-ssl-1.3.4 ~amd64
=dev-ruby/rails-dom-testing-1.0.6 ~amd64
=dev-ruby/thread_safe-0.3.5 ~amd64
=dev-ruby/ruby-openid-2.7.0 ~amd64
=dev-ruby/activesupport-3.2.21 ~amd64
=dev-ruby/coffee-rails-3.2.2 ~amd64
=dev-ruby/thor-0.19.1 ~amd64
=dev-ruby/actionmailer-3.2.21 ~amd64
=dev-ruby/railties-4.2.1 ~amd64
=dev-ruby/rack-openid-1.4.2 ~amd64
=dev-ruby/arel-3.0.2-r2 ~amd64
